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-2.0.2 spec/error_spec.rb
shutl_resource-2.0.1 spec/error_spec.rb
shutl_resource-2.0.0 spec/error_spec.rb
shutl_resource-1.9.1 spec/error_spec.rb
shutl_resource-1.9.0 spec/error_spec.rb
shutl_resource-1.8.2 spec/error_spec.rb
shutl_resource-1.8.0 spec/error_spec.rb
shutl_resource-1.7.3 spec/error_spec.rb
shutl_resource-1.7.2 spec/error_spec.rb
shutl_resource-1.7.1 spec/error_spec.rb
shutl_resource-1.7.0 spec/error_spec.rb
shutl_resource-1.6.0 spec/error_spec.rb
shutl_resource-1.5.6 spec/error_spec.rb
shutl_resource-1.5.5 spec/error_spec.rb
shutl_resource-1.5.4 spec/error_spec.rb
shutl_resource-1.5.3 spec/error_spec.rb
shutl_resource-1.5.2 spec/error_spec.rb
shutl_resource-1.5.1 spec/error_spec.rb
shutl_resource-1.5.0 spec/error_spec.rb
shutl_resource-1.4.2 spec/error_spec.rb