Skip to content

Commit

Permalink
fixing created_responder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpaniz authored and guilhermesilveira committed Aug 22, 2010
1 parent e697eda commit a9ecd62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/spec/server/action_controller/created_responder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def to_format
responder = Object.new
responder.extend ToFormatReceiver
responder.extend Restfulie::Server::ActionController::CreatedResponder
responder.should_receive(:options).and_return({:status => 300})
responder.stub(:options).and_return({:status => 300})
responder.to_format
responder.received.should be_true
end
Expand All @@ -35,7 +35,7 @@ def should_head_with(what)
responder = Object.new
responder.extend Restfulie::Server::ActionController::CreatedResponder
responder.stub(:resource).and_return(resource)
responder.should_receive(:options).and_return({:status => what})
responder.stub(:options).and_return({:status => what})
responder.should_receive(:controller).and_return(controller)
responder.should_receive(:head).with(:status => 201, :location => uri)
responder.to_format
Expand Down

0 comments on commit a9ecd62

Please sign in to comment.