Updates tests
This commit is contained in:
@@ -184,7 +184,7 @@ feature 'Debates' do
|
|||||||
expect(page).not_to have_link('click me')
|
expect(page).not_to have_link('click me')
|
||||||
expect(page.html).to_not include "<script>alert('hey')</script>"
|
expect(page.html).to_not include "<script>alert('hey')</script>"
|
||||||
|
|
||||||
click_link 'Edit'
|
click_link 'Edit debate'
|
||||||
|
|
||||||
expect(current_path).to eq edit_debate_path(Debate.last)
|
expect(current_path).to eq edit_debate_path(Debate.last)
|
||||||
expect(page).not_to have_link('click me')
|
expect(page).not_to have_link('click me')
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ feature 'Proposals' do
|
|||||||
expect(page).not_to have_link('click me')
|
expect(page).not_to have_link('click me')
|
||||||
expect(page.html).to_not include "<script>alert('hey')</script>"
|
expect(page.html).to_not include "<script>alert('hey')</script>"
|
||||||
|
|
||||||
click_link 'Edit'
|
click_link 'Edit proposal'
|
||||||
|
|
||||||
expect(current_path).to eq edit_proposal_path(Proposal.last)
|
expect(current_path).to eq edit_proposal_path(Proposal.last)
|
||||||
expect(page).not_to have_link('click me')
|
expect(page).not_to have_link('click me')
|
||||||
|
|||||||
Reference in New Issue
Block a user