Sha256: 8a96728d37aceea0481c0af4446e2dee4b1e4ec84776d2050af649f0a3ed7e13

Contents?: true

Size: 506 Bytes

Versions: 11

Compression:

Stored size: 506 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::ResponseWrapper, 'overwrites' do
  let(:object) { described_class.new res, nil }
  let(:env) {
     { :status => 404, :body => body,
      :response_headers => {'Content-Type' => 'text/plain'} }
  }
  let(:res) { Faraday::Response.new env }
  let(:body) { {'id' => 2456210, 'fork' => false, 'type' => 'repo' } }

  it { expect(object.id).to eql(2456210) }

  it { expect(object.fork).to be_false }

  it { expect(object.type).to eql('repo') }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
github_api-0.12.3 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.12.2 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.12.1 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.12.0 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.11.3 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.11.2 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.11.1 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.11.0 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.10.2 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.10.1 spec/github/response_wrapper/overwrites_spec.rb
github_api-0.10.0 spec/github/response_wrapper/overwrites_spec.rb