From 431c313487aa8cefb27472818cac29a93a931df9 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 12 Jun 2018 13:41:43 +0200 Subject: [PATCH] Use `scenario` instead of `it` in feature specs --- spec/features/budget_polls/polls_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/features/budget_polls/polls_spec.rb b/spec/features/budget_polls/polls_spec.rb index 35e2b1b0f..d9ae151cf 100644 --- a/spec/features/budget_polls/polls_spec.rb +++ b/spec/features/budget_polls/polls_spec.rb @@ -3,7 +3,8 @@ require "rails_helper" feature "Polls" do context "Public index" do - it "Budget polls should not be listed" do + + scenario "Budget polls should not be listed" do poll = create(:poll) budget_poll = create(:poll, budget: create(:budget)) @@ -12,10 +13,12 @@ feature "Polls" do expect(page).to have_content(poll.name) expect(page).not_to have_content(budget_poll.name) end + end context "Admin index" do - it "Budget polls should not appear in the list" do + + scenario "Budget polls should not appear in the list" do login_as(create(:administrator).user) poll = create(:poll)