removes url parsing in favor of current_path

This commit is contained in:
Juanjo Bazán
2015-09-12 21:46:38 +02:00
parent dbdd149c06
commit c8d4a0088a
5 changed files with 14 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ feature 'Verified users' do
end
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
expect(URI.parse(current_url).path).to eq(account_path)
expect(current_path).to eq(account_path)
end
scenario "Select a verified phone" do
@@ -123,7 +123,7 @@ feature 'Verified users' do
click_link "Use another phone"
expect(URI.parse(current_url).path).to eq(new_sms_path)
expect(current_path).to eq(new_sms_path)
end
scenario "No verified information" do
@@ -132,7 +132,7 @@ feature 'Verified users' do
login_as(user)
visit verified_user_path
expect(URI.parse(current_url).path).to eq(new_sms_path)
expect(current_path).to eq(new_sms_path)
end
end