Sha256: 5228fb8ac8bb49aaeb0f69709ae96e737ed14c534834a36aadb809d357484b75

Contents?: true

Size: 647 Bytes

Versions: 18

Compression:

Stored size: 647 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 include "Attempted to send request with nil arguments"
    end

    it 'contains the summary in the message' do
      error.message.should include "Each request expects certain number of arguments."
    end

    it 'contains the resolution in the message' do
      error.message.should include "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.9.0 spec/github/error/validations_spec.rb
github_api-0.8.11 spec/github/error/validations_spec.rb
github_api-0.8.10 spec/github/error/validations_spec.rb
github_api-0.8.9 spec/github/error/validations_spec.rb
github_api-0.8.8 spec/github/error/validations_spec.rb
github_api-0.8.7 spec/github/error/validations_spec.rb
github_api-0.8.6 spec/github/error/validations_spec.rb
github_api-0.8.5 spec/github/error/validations_spec.rb
github_api-0.8.4 spec/github/error/validations_spec.rb
github_api-0.8.3 spec/github/error/validations_spec.rb
github_api-0.8.2 spec/github/error/validations_spec.rb
github_api-0.8.1 spec/github/error/validations_spec.rb
github_api-0.8.0 spec/github/error/validations_spec.rb
github_api-0.7.2 spec/github/error/validations_spec.rb
github_api-0.7.1 spec/github/error/validations_spec.rb
github_api-0.7.0 spec/github/error/validations_spec.rb
github_api-0.6.5 spec/github/error/validations_spec.rb
github_api-0.6.4 spec/github/error/validations_spec.rb