Commit 0b9f6c58 authored by Marin Jankovski's avatar Marin Jankovski

Update the tests after base change.

parent 9ba563f3
......@@ -9,7 +9,8 @@ class Spinach::Features::User < Spinach::FeatureSteps
end
step 'I visit unsubscribe link' do
visit "/unsubscribes/joh@doe.org"
email = Base64.urlsafe_encode64("joh@doe.org")
visit "/unsubscribes/#{email}"
end
step 'I should see unsubscribe text and button' do
......
......@@ -644,7 +644,7 @@ describe Notify do
end
it 'includes unsubscribe link' do
unsubscribe_link = "http://localhost/unsubscribes/#{CGI.escape(user.email)}"
unsubscribe_link = "http://localhost/unsubscribes/#{Base64.urlsafe_encode64(user.email)}"
should have_body_text(unsubscribe_link)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment