fixes specs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user