Skip to content

Commit b8d998f

Browse files
committed
Use should > in GC specs
1 parent da325d7 commit b8d998f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ruby/core/gc/stat_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
it "increases count after GC is run" do
1818
count = GC.stat(:count)
1919
GC.start
20-
(GC.stat(:count) > count).should be_true
20+
GC.stat(:count).should > count
2121
end
2222

2323
it "increases major_gc_count after GC is run" do
2424
count = GC.stat(:major_gc_count)
2525
GC.start
26-
(GC.stat(:major_gc_count) > count).should be_true
26+
GC.stat(:major_gc_count).should > count
2727
end
2828
end

0 commit comments

Comments
 (0)