diff options
author | Azul <azul@leap.se> | 2014-02-10 15:01:11 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-10 15:01:11 +0100 |
commit | b4719619aabbe9ebf74563b62e1eb8e4fb248c21 (patch) | |
tree | da7eb2d3a3a648be0be519aae23f997f248ba320 /core | |
parent | b6c8279a39f933257be11fc29f5b7d59efff743f (diff) |
ensure we are working on a string as the content type
Diffstat (limited to 'core')
-rw-r--r-- | core/lib/extensions/testing.rb | 2 |
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 |