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.12.3 spec/shared/request_failure_behaviour.rb
github_api-0.12.2 spec/shared/request_failure_behaviour.rb
github_api-0.12.1 spec/shared/request_failure_behaviour.rb
github_api-0.12.0 spec/shared/request_failure_behaviour.rb
github_api-0.11.3 spec/shared/request_failure_behaviour.rb
github_api-0.11.2 spec/shared/request_failure_behaviour.rb
github_api-0.11.1 spec/shared/request_failure_behaviour.rb
github_api-0.11.0 spec/shared/request_failure_behaviour.rb
github_api-0.10.2 spec/shared/request_failure_behaviour.rb
github_api-0.10.1 spec/shared/request_failure_behaviour.rb
github_api-0.10.0 spec/shared/request_failure_behaviour.rb
github_api-0.9.7 spec/shared/request_failure_behaviour.rb
github_api-0.9.6 spec/shared/request_failure_behaviour.rb
github_api-0.9.5 spec/shared/request_failure_behaviour.rb
github_api-0.9.4 spec/shared/request_failure_behaviour.rb
github_api-0.9.3 spec/shared/request_failure_behaviour.rb
github_api-0.9.2 spec/shared/request_failure_behaviour.rb
github_api-0.9.1 spec/shared/request_failure_behaviour.rb
github_api-0.9.0 spec/shared/request_failure_behaviour.rb
github_api-0.8.11 spec/shared/request_failure_behaviour.rb