spec/mem_spec.rb in digest-murmurhash-0.2.3 vs spec/mem_spec.rb in digest-murmurhash-0.3.0
- old
+ new
@@ -1,18 +1,15 @@
require 'spec_helper'
describe MurmurHash do
it "gc safe" do
- {
- MurmurHash1 => "c709abd5",
- MurmurHash2 => "33f67c7e",
- MurmurHash2A => "df25554b",
- }.each do |c, should|
+ all.each do |c|
murmur = c.new
+ init = murmur.to_s
GC.start
murmur.update("murmur")
GC.start
- expect(murmur.update("hash").to_s).to eq(should);
+ expect(murmur.update("hash").to_s != init).to be true
end
end
end