spec/luhn_spec.rb in moeffju-luhn-0.1.2 vs spec/luhn_spec.rb in moeffju-luhn-0.1.3
- old
+ new
@@ -53,6 +53,9 @@
it "should return Strings" do
incomplete.luhn!.should be_a String
end
end
+ it "should return valid checksum (one digit)" do
+ 123.luhn.should be 0
+ end
end