Sha256: 6ffe897b7ef6e4b17dff07d65442b767d75e12eeaacc3f245e01b08215806fd8
Contents?: true
Size: 334 Bytes
Versions: 3
Compression:
Stored size: 334 Bytes
Contents
require 'spec_helper' describe Marver::API::Error do let(:error) { Marver::API::Error.new({ "code" => "404", "status" => "Not found."}) } it '#code - the http status code of the error' do expect(error.code).to eq 404 end it '#status - description of the error' do expect(error.status).to eq "Not found." end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marver-0.0.6 | spec/marver/api/error_spec.rb |
marver-0.0.5 | spec/marver/api/error_spec.rb |
marver-0.0.4 | spec/marver/api/error_spec.rb |