removes url parsing in favor of current_path
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user