test/test_helper.rb in siringa-0.0.6 vs test/test_helper.rb in siringa-0.0.7
- old
+ new
@@ -6,5 +6,10 @@
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+
+# Parse JSON response body
+def body
+ JSON.parse(@response.body)
+end