Sha256: 08d8e6257c90ded203bd269d39c4dc7591e8fa63be5dd651458bde6d581b567b

Contents?: true

Size: 306 Bytes

Versions: 30

Compression:

Stored size: 306 Bytes

Contents

# encoding: utf-8

shared_examples_for 'request failure' do

  context "resource not found" do
    let(:body)   { "" }
    let(:status) { [404, "Not Found"] }

    it "should fail to retrive resource" do
      expect {
        requestable
      }.to raise_error(Github::Error::NotFound)
    end
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
github_api-0.8.10 spec/shared/request_failure_behaviour.rb
github_api-0.8.9 spec/shared/request_failure_behaviour.rb
github_api-0.8.8 spec/shared/request_failure_behaviour.rb
github_api-0.8.7 spec/shared/request_failure_behaviour.rb
github_api-0.8.6 spec/shared/request_failure_behaviour.rb
github_api-0.8.5 spec/shared/request_failure_behaviour.rb
github_api-0.8.4 spec/shared/request_failure_behaviour.rb
github_api-0.8.3 spec/shared/request_failure_behaviour.rb
github_api-0.8.2 spec/shared/request_failure_behaviour.rb
github_api-0.8.1 spec/shared/request_failure_behaviour.rb