Sha256: 3ec0369894c7ac13d32846bb81c3352dc87757a8cd5095edbeaddc3a2c448906

Contents?: true

Size: 311 Bytes

Versions: 10

Compression:

Stored size: 311 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe YouGotListed::Error do
  
  it "should set a message" do
    @error = YouGotListed::Error.new(300, 'Account retrieving failed.')
    @error.message.should == "YouGotListed Error: Account retrieving failed. (code: 300)"
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
you_got_listed-0.3.3 spec/you_got_listed/error_spec.rb
you_got_listed-0.3.2 spec/you_got_listed/error_spec.rb
you_got_listed-0.3.1 spec/you_got_listed/error_spec.rb
you_got_listed-0.3.0 spec/you_got_listed/error_spec.rb
you_got_listed-0.2.5 spec/you_got_listed/error_spec.rb
you_got_listed-0.2.4 spec/you_got_listed/error_spec.rb
you_got_listed-0.2.3 spec/you_got_listed/error_spec.rb
you_got_listed-0.2.2 spec/you_got_listed/error_spec.rb
you_got_listed-0.2.1 spec/you_got_listed/error_spec.rb
you_got_listed-0.2.0 spec/you_got_listed/error_spec.rb