Sha256: 9ff5ef32f0c26e8a60129b29171eb7687032550a3ead82514db9ba51377160b2

Contents?: true

Size: 640 Bytes

Versions: 18

Compression:

Stored size: 640 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Error::Validations do
  describe '#message' do
    let(:error) { described_class.new(:username => nil) }

    it 'contains the problem in the message' do
      error.message.should =~ /Attempted to send request with nil arguments/
    end

    it 'contains the summary in the message' do
      error.message.should =~ /Each request expects certain number of required arguments./
    end

    it 'contains the resolution in the message' do
      error.message.should =~ /Double check that the provided arguments are set to some value/
    end
  end
end # Github::Error::Validations

Version data entries

18 entries across 18 versions & 1 rubygems

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