Sha256: c693873e0cfe43e8188621211260244f163338f925dd596cebfbe1906502b027

Contents?: true

Size: 742 Bytes

Versions: 51

Compression:

Stored size: 742 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Error::InvalidOptions do
  describe '#message' do
    let(:error) { described_class.new({:invalid => true}, [:valid]) }

    it 'contains the problem in the message' do
      error.message.should include "Invalid option invalid provided for this request."
    end

    it 'contains the summary in the message' do
      error.message.should include "Github gem checks the request parameters passed to ensure that github api is not hit unnecessairly and to fail fast."
    end

    it 'contains the resolution in the message' do
      error.message.should include "Valid options are: valid, make sure these are the ones you are using"
    end
  end
end # Github::Error::InvalidOptions

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
github_api-0.12.3 spec/github/error/invalid_options_spec.rb
github_api-0.12.2 spec/github/error/invalid_options_spec.rb
github_api-0.12.1 spec/github/error/invalid_options_spec.rb
github_api-0.12.0 spec/github/error/invalid_options_spec.rb
github_api-0.11.3 spec/github/error/invalid_options_spec.rb
github_api-0.11.2 spec/github/error/invalid_options_spec.rb
github_api-0.11.1 spec/github/error/invalid_options_spec.rb
github_api-0.11.0 spec/github/error/invalid_options_spec.rb
github_api-0.10.2 spec/github/error/invalid_options_spec.rb
github_api-0.10.1 spec/github/error/invalid_options_spec.rb
github_api-0.10.0 spec/github/error/invalid_options_spec.rb
github_api-0.9.7 spec/github/error/invalid_options_spec.rb
github_api-0.9.6 spec/github/error/invalid_options_spec.rb
github_api-0.9.5 spec/github/error/invalid_options_spec.rb
github_api-0.9.4 spec/github/error/invalid_options_spec.rb
github_api-0.9.3 spec/github/error/invalid_options_spec.rb
github_api-0.9.2 spec/github/error/invalid_options_spec.rb
github_api-0.9.1 spec/github/error/invalid_options_spec.rb
github_api-0.9.0 spec/github/error/invalid_options_spec.rb
github_api-0.8.11 spec/github/error/invalid_options_spec.rb