Sha256: 2458835cb83888e21f23c1379a868bae36932de2a87af30e906d7ae4071e5766
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
require 'spec_helper' describe Gamification::Checksum do describe '.generate' do it 'generates checksums' do expect(subject.generate(['a', 'b', 'c'])).to eq('412ce96f60d05e18445b84f57a23ae22') end end describe '.verify' do it 'verifies checksums' do expect(subject.verify('412ce96f60d05e18445b84f57a23ae22', ['a', 'b', 'c'])).to be(true) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gamification-1.0.3 | spec/lib/gamification/checksum_spec.rb |
gamification-1.0.2 | spec/lib/gamification/checksum_spec.rb |
gamification-1.0.1 | spec/lib/gamification/checksum_spec.rb |