Sha256: a527737cfe19a3747a0c01a4248bb87ddb7bb47fed637b0809ab9212efdb681c

Contents?: true

Size: 296 Bytes

Versions: 29

Compression:

Stored size: 296 Bytes

Contents

require 'spec_helper'
describe Shutl::Resource::Error do

  specify "it has a body and status" do
    error = Shutl::Resource::Error.new({errors: {base: ["something went wrong"]}}, 500)

    error.body.should == {errors: {base: ["something went wrong"]}}
    error.status.should == 500
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shutl_resource-1.4.1 spec/error_spec.rb
shutl_resource-1.4.0 spec/error_spec.rb
shutl_resource-1.3.6 spec/error_spec.rb
shutl_resource-1.3.5 spec/error_spec.rb
shutl_resource-1.3.4 spec/error_spec.rb
shutl_resource-1.3.3 spec/error_spec.rb
shutl_resource-1.3.2 spec/error_spec.rb
shutl_resource-1.3.1 spec/error_spec.rb
shutl_resource-1.3.0 spec/error_spec.rb