Permalink
Browse files

Cleaning up the asserts_response macro test

  • Loading branch information...
1 parent e9f7ace commit 2f352738236a231f4b72c21fb8105a425f303fe3 @gus gus committed May 19, 2010
Showing with 4 additions and 6 deletions.
  1. +4 −6 test/action_controller/context_macros/asserts_response_test.rb
@@ -12,14 +12,12 @@
a_situation
end
- setup { Riot::Context.new(RoomsController) {} }
+ setup do
+ Riot::Context.new(RoomsController) {}
+ end
context "when referenced without arguments" do
- setup do
- # situation = Riot::Situation.new
- # situation.helper(:response) { OpenStruct.new(:status => 200) }
- topic.asserts_response
- end
+ setup { topic.asserts_response }
asserts_topic.kind_of(Riot::Assertion)
asserts(:to_s).equals("asserts response")

0 comments on commit 2f35273

Please sign in to comment.