Sha256: bc3ee616add97545379141fc58d436b490f96e5ff8913a846fcbc0252bba26cb

Contents?: true

Size: 468 Bytes

Versions: 10

Compression:

Stored size: 468 Bytes

Contents

require 'spec_helper.rb'

describe Reviewed do

  describe Reviewed::ResourceNotFound do
    it 'should respond to url' do
      error = Reviewed::ResourceNotFound.new(url: 'url', msg: "msg")
      error.url.should eql('url')
      error.message.should eql('msg')
    end
  end

  describe Reviewed::ApiError do
    it "sets a status code" do
      e = Reviewed::ApiError.new(msg: "Fail hard", http_status: 1000)
      e.http_status.should eql(1000)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
reviewed-1.2.4 spec/error_spec.rb
reviewed-1.2.3 spec/error_spec.rb
reviewed-1.3.0 spec/error_spec.rb
reviewed-1.2.2 spec/error_spec.rb
reviewed-1.2.0 spec/error_spec.rb
reviewed-1.1.0 spec/error_spec.rb
reviewed-1.0.4 spec/error_spec.rb
reviewed-1.0.3 spec/error_spec.rb
reviewed-1.0.2 spec/error_spec.rb
reviewed-1.0.1 spec/error_spec.rb