Sha256: d3b54ff388a07ce3812cb4f1b4ecd1a172d86c5986e84549eac8dcf85dc18e5a

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

describe Github::Response::Helpers do

  let(:env) { { :body => [1,2,3] } }
  let(:instance) { described_class.new }

  it 'includes result helper methods' do
    res = instance.on_complete(env)
    res[:body].class.included_modules.should include Github::Result
  end

  it 'should extend result with environemnt getter' do
    res = instance.on_complete(env)
    res[:body].should respond_to :env
  end

end # Github::Response::Helpers

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
github_api-0.4.6 spec/github/response/helpers_spec.rb
github_api-0.4.5 spec/github/response/helpers_spec.rb
github_api-0.4.4 spec/github/response/helpers_spec.rb
github_api-0.4.3 spec/github/response/helpers_spec.rb
github_api-0.4.2 spec/github/response/helpers_spec.rb
github_api-0.4.1 spec/github/response/helpers_spec.rb
github_api-0.4.0 spec/github/response/helpers_spec.rb