Sha256: 06fd99c9d64ee6dd48fe8ec4d66b1753f0262c1fd5a8dc0275bf8ad04d7f1a6e

Contents?: true

Size: 423 Bytes

Versions: 14

Compression:

Stored size: 423 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'spec_helper'

describe Github::API, '#set' do

  after { reset_authentication_for subject }

  it 'requires value to be set' do
    expect { subject.set :option }.to raise_error(ArgumentError)
  end

  it 'accepts more than one option' do
    subject.set :user => 'user-name', :repo => 'repo-name'
    subject.user.should == 'user-name'
    subject.repo.should == 'repo-name'
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
github_api-0.9.0 spec/github/api/set_spec.rb
github_api-0.8.11 spec/github/api/set_spec.rb
github_api-0.8.10 spec/github/api/set_spec.rb
github_api-0.8.9 spec/github/api/set_spec.rb
github_api-0.8.8 spec/github/api/set_spec.rb
github_api-0.8.7 spec/github/api/set_spec.rb
github_api-0.8.6 spec/github/api/set_spec.rb
github_api-0.8.5 spec/github/api/set_spec.rb
github_api-0.8.4 spec/github/api/set_spec.rb
github_api-0.8.3 spec/github/api/set_spec.rb
github_api-0.8.2 spec/github/api/set_spec.rb
github_api-0.8.1 spec/github/api/set_spec.rb
github_api-0.8.0 spec/github/api/set_spec.rb
github_api-0.7.2 spec/github/api/set_spec.rb