Sha256: 7c4b78a9c5621712090cebb63f0f9af1aa46a3c8a0cfa40320f3bffd786650a4
Contents?: true
Size: 572 Bytes
Versions: 4
Compression:
Stored size: 572 Bytes
Contents
require 'spec_helper' describe Restfulness::HTTPException do describe "#initialize" do it "should assign variables" do obj = Restfulness::HTTPException.new(200, "payload", :message => 'foo', :headers => {}) expect(obj.status).to eql(200) expect(obj.payload).to eql("payload") expect(obj.message).to eql('foo') expect(obj.headers).to eql({}) end it "should use status status for message if none provided" do obj = Restfulness::HTTPException.new(200, "payload") expect(obj.message).to eql('OK') end end end
Version data entries
4 entries across 4 versions & 1 rubygems