summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/lib/extensions/testing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/extensions/testing.rb b/core/lib/extensions/testing.rb
index d9b6da8..8f7e73c 100644
--- a/core/lib/extensions/testing.rb
+++ b/core/lib/extensions/testing.rb
@@ -23,7 +23,7 @@ module LeapWebCore
def assert_json_response(object)
assert_equal 'application/json',
- get_response.content_type.split(';').first
+ get_response.content_type.to_s.split(';').first
if object.is_a? Hash
object.stringify_keys! if object.respond_to? :stringify_keys!
assert_equal object, json_response