Sha256: 8ff97d132af1a1f34108fe325994cfcbb5cccd9ab93b20e8c6d8a5e12a34028b
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
require 'test_helper' class OauthTest < ActiveSupport::IntegrationCase test 'invalid auth_token should do nothing' do visit '/' assert has_content?('There be NO logged in users') end test 'valid auth token shows user as logged in' do user = create_user auth_grant = create_auth_grant_for_user(user) access_token = auth_grant.access_token visit "/?access_token=#{access_token}" assert has_content?('User is logged in') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opro-0.0.1.pre | test/integration/oauth_test.rb |