Sha256: 3222851812e9d720362127f5d9c96c1430acb5dcf9b33d9a16d2b75a07535f27
Contents?: true
Size: 325 Bytes
Versions: 4
Compression:
Stored size: 325 Bytes
Contents
require "spec_helper" require "espago/error" require "json" require "helpers/fake_response" describe Espago::Error do subject { Espago::Error.new(response) } response_body = 'body' let(:response) { FakeResponse.new(422, response_body) } its(:body) { should eq('body') } its(:status) { should eq(422) } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
espago-0.1.8 | spec/espago/error_spec.rb |
espago-0.1.2 | spec/espago/error_spec.rb |
espago-0.0.9 | spec/espago/error_spec.rb |
espago-0.0.7 | spec/espago/error_spec.rb |