Sha256: a4aa73b64b06d0ac7abde21c5817e5cf98c03297484b69b4f24888573d794300
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 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 context 'accpets more than one option' do before { subject.set user: 'user-name', repo: 'repo-name' } it 'sets user' do expect(subject.user).to eql('user-name') end it 'sets repo' do expect(subject.repo).to eql('repo-name') end end context 'defines accessors' do before { subject.set :branch, 'arguments' } it { should respond_to :branch } it { should respond_to 'branch=' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.12.3 | spec/github/api/set_spec.rb |
github_api-0.12.2 | spec/github/api/set_spec.rb |
github_api-0.12.1 | spec/github/api/set_spec.rb |