Skip to content

Commit

Permalink
adjust memory-leak spec for 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Jul 17, 2010
1 parent 805d813 commit 9f64238
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/sinatra/namespace_spec.rb
Expand Up @@ -264,10 +264,11 @@ def measure

it 'should not leak objects' do
if Monkey::Engine.mri?
measure
10.times do
first = measure
second = measure
first.should == second
second.should <= first + 1
end
end
end
Expand Down

0 comments on commit 9f64238

Please sign in to comment.