Permalink
Browse files

Updated tests to work with protest again after addition of Situation

  • Loading branch information...
gus committed Oct 2, 2009
1 parent 7c70913 commit c81aa369d4253d60fda022b146e25b03d2b1efbd
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/chicago/protest/macros.rb
  2. +1 −1 test/test_helper.rb
@@ -26,7 +26,9 @@ def asserts_json_response(json, &block)
asserts("response body has JSON") do
json = json.to_json unless json.instance_of?(String)
json
- end.equals(last_response.body)
+ end.equals(situation.last_response.body)
+ # Calling situation is kind of yucky, but maybe not. The maybe not is because of how explicit it is
+ # to say "situation" (gus)
end
# Usage:
View
@@ -20,6 +20,6 @@ def app
end
end
-class Protest::Context
+class Protest::Situation
include Rack::Test::Methods
end

0 comments on commit c81aa36

Please sign in to comment.