summaryrefslogtreecommitdiff
path: root/core/lib/extensions
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-02-08 12:29:08 +0100
committerAzul <azul@leap.se>2014-02-10 14:26:30 +0100
commit758b9a3c30a73fd985943fb7a887f0373be3a833 (patch)
tree935bf639bb17ea034d7864205d087f6cd3497175 /core/lib/extensions
parent67f17e65b9e9e8ad2991b9c4002dba5203baa77f (diff)
split up and expand account integration test
Diffstat (limited to 'core/lib/extensions')
-rw-r--r--core/lib/extensions/testing.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/lib/extensions/testing.rb b/core/lib/extensions/testing.rb
index aad7fc1..d9b6da8 100644
--- a/core/lib/extensions/testing.rb
+++ b/core/lib/extensions/testing.rb
@@ -22,6 +22,8 @@ module LeapWebCore
end
def assert_json_response(object)
+ assert_equal 'application/json',
+ get_response.content_type.split(';').first
if object.is_a? Hash
object.stringify_keys! if object.respond_to? :stringify_keys!
assert_equal object, json_response