Sha256: cdeda0964b14cfeed0a9ac9c37c26dc838cb407c2c984e1557bb7ca68d10615f

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

require 'test_helper'

class CapybaraOauthTest < 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

2 entries across 2 versions & 1 rubygems

Version Path
opro-0.0.3 test/integration/oauth_test.rb
opro-0.0.2 test/integration/oauth_test.rb