@@ -416,7 +416,7 class ActiveSupport::TestCase | |||||
416 | # Checks that the response is a valid JSON string |
|
416 | # Checks that the response is a valid JSON string | |
417 | def self.should_be_a_valid_json_string |
|
417 | def self.should_be_a_valid_json_string | |
418 | should "be a valid JSON string (or empty)" do |
|
418 | should "be a valid JSON string (or empty)" do | |
419 |
assert |
|
419 | assert(response.body.blank? || ActiveSupport::JSON.decode(response.body)) | |
420 | end |
|
420 | end | |
421 | end |
|
421 | end | |
422 |
|
422 |
General Comments 0
You need to be logged in to leave comments.
Login now