diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-11-05 17:49:20 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-11-05 17:49:20 +0000 |
commit | 7d934c984ae85b50e53a6444cd8916d560e2a528 (patch) | |
tree | 705b952c247e598a12b1234e07132afdfefb7022 /test/test_helper.rb | |
parent | 4b1dd334a596abcb52306a5e90a5d8009c83ac2c (diff) | |
download | redmine-7d934c984ae85b50e53a6444cd8916d560e2a528.tar.gz redmine-7d934c984ae85b50e53a6444cd8916d560e2a528.zip |
Allow key authentication when updating issues (with tests) #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4366 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 09e600f27..ade46aa7c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -401,8 +401,8 @@ class ActiveSupport::TestCase # Checks that the response is a valid JSON string def self.should_be_a_valid_json_string - should "be a valid JSON string" do - assert ActiveSupport::JSON.decode(response.body) + should "be a valid JSON string (or empty)" do + assert (response.body.blank? || ActiveSupport::JSON.decode(response.body)) end end |