spec/unit/exceptions_spec.rb in restfulness-0.1.0 vs spec/unit/exceptions_spec.rb in restfulness-0.2.0
- old
+ new
@@ -3,16 +3,16 @@
describe Restfulness::HTTPException do
describe "#initialize" do
it "should assign variables" do
obj = Restfulness::HTTPException.new(200, "payload", :message => 'foo', :headers => {})
- obj.code.should eql(200)
+ obj.status.should eql(200)
obj.payload.should eql("payload")
obj.message.should eql('foo')
obj.headers.should eql({})
end
- it "should use status code for message if none provided" do
+ it "should use status status for message if none provided" do
obj = Restfulness::HTTPException.new(200, "payload")
obj.message.should eql('OK')
end
end