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.5.4 spec/github/error/invalid_options_spec.rb
github_api-0.5.3 spec/github/error/invalid_options_spec.rb
github_api-0.5.2 spec/github/error/invalid_options_spec.rb
github_api-0.5.1 spec/github/error/invalid_options_spec.rb
github_api-0.5.0 spec/github/error/invalid_options_spec.rb
github_api-0.5.0.rc1 spec/github/error/invalid_options_spec.rb
github_api-0.4.11 spec/github/error/invalid_options_spec.rb
github_api-0.4.10 spec/github/error/invalid_options_spec.rb
github_api-0.4.9 spec/github/error/invalid_options_spec.rb
github_api-0.4.8 spec/github/error/invalid_options_spec.rb
github_api-0.4.7 spec/github/error/invalid_options_spec.rb