spec/simple-hasher_spec.rb in simple-hasher-0.0.4 vs spec/simple-hasher_spec.rb in simple-hasher-0.0.5
- old
+ new
@@ -3,10 +3,10 @@
describe SimpleHasher do
describe "encode" do
it 'should encode a single digit integer' do
num = 1
- SimpleHasher.encode(num).should== SimpleHasher::ALLOWED_CHARS[num]
+ SimpleHasher.encode(num).should== SimpleHasher.allowed_chars[num]
end
it 'should encode an integer into a multi-character string' do
SimpleHasher.encode(5779).should== "LQv"
end