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