Skip to content

Commit

Permalink
fixing weird errors in tests on 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Guymon committed Jun 27, 2011
1 parent 67363e4 commit 6b306bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/new_relic/data_serialization_test.rb
Expand Up @@ -93,12 +93,13 @@ def test_should_send_data_disabled
end

def test_should_send_data_under_limit
NewRelic::DataSerialization.expects(:max_size).returns(20)
NewRelic::DataSerialization.expects(:max_size).returns(2000)
NewRelic::DataSerialization.read_and_write_to_file do | old_data |
"a" * 5
end

assert(!NewRelic::DataSerialization.should_send_data?, 'Should be under the limit')
assert(!NewRelic::DataSerialization.should_send_data?,
'Should be under the limit')
end

def test_should_handle_empty_spool_file
Expand Down

0 comments on commit 6b306bb

Please sign in to comment.