From 3f394d099dc478f0f960f2f126bc140615c291f1 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 20 Dec 2016 11:41:24 +0100 Subject: [PATCH] fixes specs --- spec/features/debates_spec.rb | 5 +++-- spec/features/proposals_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/features/debates_spec.rb b/spec/features/debates_spec.rb index 1ded2e0ff..1c6793812 100644 --- a/spec/features/debates_spec.rb +++ b/spec/features/debates_spec.rb @@ -232,7 +232,7 @@ feature 'Debates' do expect(page).to have_content 'Debate created successfully.' - within "#tags" do + within "#tags_debate_#{Debate.last.id}" do expect(page).to have_content 'Education' expect(page).to_not have_content 'Health' end @@ -249,7 +249,8 @@ feature 'Debates' do click_button 'Start a debate' expect(page).to have_content 'Debate created successfully.' - within "#tags" do + + within "#tags_debate_#{Debate.last.id}" do expect(page).to have_content 'Refugees' expect(page).to have_content 'Solidarity' end diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 7a99b0050..e68f45c08 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -333,7 +333,7 @@ feature 'Proposals' do expect(page).to have_content 'Proposal created successfully.' - within "#tags" do + within "#tags_proposal_#{Proposal.last.id}" do expect(page).to have_content 'Education' expect(page).to_not have_content 'Health' end @@ -355,7 +355,7 @@ feature 'Proposals' do click_button 'Create proposal' expect(page).to have_content 'Proposal created successfully.' - within "#tags" do + within "#tags_proposal_#{Proposal.last.id}" do expect(page).to have_content 'Refugees' expect(page).to have_content 'Solidarity' end