Sha256: 12391ecf5c5fef7535465077076614af5294e2242984d5ecc5886a096981f322
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Github::API, '#with' do let(:user) { 'peter-murach' } after { reset_authentication_for subject } context 'with hash' do it 'supports list of options' do subject.with(user: user, repo: 'github') subject.user.should == user end end context 'with string' do it 'support forward slash delimiter options' do subject.with('peter-murach/github') subject.user.should == user end it 'fails without slash delimiter' do expect { subject.with('peter-murach') }.to raise_error(ArgumentError) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.12.3 | spec/github/api/with_spec.rb |
github_api-0.12.2 | spec/github/api/with_spec.rb |
github_api-0.12.1 | spec/github/api/with_spec.rb |