Sha256: 9a2982940bba91a15396ec29eed06ee761090d44f54ab62afd585bdf88272232

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

require 'test_helper'

module Shipit
  class GithubAuthenticationControllerTest < ActionController::TestCase
    test ":callback can sign in to github" do
      @request.env['omniauth.auth'] = {info: {nickname: 'shipit'}}
      github_user = mock('Sawyer User')
      Shipit.github_api.stubs(:user).returns(github_user)
      User.expects(:find_or_create_from_github).with(github_user).returns(stub(id: 44))

      get :callback
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shipit-engine-0.7.0 test/controllers/github_authentication_controller_test.rb
shipit-engine-0.6.4 test/controllers/github_authentication_controller_test.rb
shipit-engine-0.6.3 test/controllers/github_authentication_controller_test.rb
shipit-engine-0.6.2 test/controllers/github_authentication_controller_test.rb
shipit-engine-0.6.1 test/controllers/github_authentication_controller_test.rb
shipit-engine-0.6.0 test/controllers/github_authentication_controller_test.rb