removes uri parsing in favor of current_path

This commit is contained in:
Juanjo Bazán
2015-10-23 13:19:03 +02:00
parent 5ee95a7b5b
commit b5c1f4f237
2 changed files with 4 additions and 4 deletions

View File

@@ -260,7 +260,7 @@ feature 'Votes' do
expect(page).to have_content "1 support"
expect(page).to have_content "You already supported this proposal, share it!"
end
expect(URI.parse(current_url).path).to eq(proposals_path)
expect(current_path).to eq(proposals_path)
end
scenario 'Create in featured proposal in index', :js do
@@ -271,7 +271,7 @@ feature 'Votes' do
expect(page).to have_content "You already supported this proposal, share it!"
end
expect(URI.parse(current_url).path).to eq(proposals_path)
expect(current_path).to eq(proposals_path)
end
end
end