Sha256: b6e22bdeb857e9c93aba71a9ad8dd8cdb0884a8e5dfeffac9cfad4d12596fe84

Contents?: true

Size: 459 Bytes

Versions: 12

Compression:

Stored size: 459 Bytes

Contents

require 'spec_helper'

describe Octoauth do
  describe '#new' do
    it 'creates auth objects' do
      stub_request(:post, 'https://good:sekrit@api.github.com/authorizations')
        .to_return(
          status: 200,
          body: Struct.new(:token).new('abcdabcdabcdabcdabcdabcdabcdabcdabcd')
        )
      auth = Octoauth.new note: 'testing', login: 'good', password: 'sekrit'
      expect(auth).to be_an_instance_of Octoauth::Auth
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
octoauth-1.2.0 spec/octoauth_spec.rb
octoauth-1.1.0 spec/octoauth_spec.rb
octoauth-1.0.2 spec/octoauth_spec.rb
octoauth-1.0.1 spec/octoauth_spec.rb
octoauth-1.0.0 spec/octoauth_spec.rb
octoauth-0.0.10 spec/octoauth_spec.rb
octoauth-0.0.9 spec/octoauth_spec.rb
octoauth-0.0.8 spec/octoauth_spec.rb
octoauth-0.0.7 spec/octoauth_spec.rb
octoauth-0.0.4 spec/octoauth_spec.rb
octoauth-0.0.3 spec/octoauth_spec.rb
octoauth-0.0.2 spec/octoauth_spec.rb