session_test.rb revision 36613fea710f31de79fa3c8c0a7c2bb8a2e8b02d
require 'integration_test_helper'
test 'registration' do
visit '/'
within "#new_user" do
click_on 'Sign Up'
end
end
test 'login' do
visit '/'
within '#sign_in' do
click_on 'Sign In'
end
assert_match /#{user.name}/, find("nav .dropdown.user-dropdown a").text
end
end