spec/account_spec.rb in banktools-se-0.10.0 vs spec/account_spec.rb in banktools-se-0.11.0

- old
+ new

@@ -36,10 +36,11 @@ "3410-0000000", # Nordea. "3782-800928-6249", # Nordea personkonto. "3783-0000000", # Nordea. "5000-0000000", # SEB. "6000-000000000", # Handelsbanken. + "6000-00000000", # Handelsbanken. "7000-0000000", # Swedbank. "8000-2-0000000000", # Swedbank/Sparbanker with clearing number checksum. "9020-0000000", # Länsförsäkringar Bank. "9040-0000000", # Citibank. "9060-0000000", # Länsförsäkringar Bank. @@ -93,11 +94,11 @@ BankTools::SE::Account.new("1 2-3X").errors.should include(BankTools::SE::Errors::INVALID_CHARACTERS) BankTools::SE::Account.new("1 2-3").errors.should_not include(BankTools::SE::Errors::INVALID_CHARACTERS) end it "should include :bad_checksum for Nordea personkonto if the serial Luhn/mod 10 checksum is incorrect" do - BankTools::SE::Utils.valid_luhn?("800928-6249").should be_true - BankTools::SE::Utils.valid_luhn?("3300-800928-6249").should be_false + BankTools::SE::Utils.valid_luhn?("800928-6249").should eq(true) + BankTools::SE::Utils.valid_luhn?("3300-800928-6249").should eq(false) BankTools::SE::Account.new("3300-800928-6249").errors.should_not include(BankTools::SE::Errors::BAD_CHECKSUM) end it "should include :unknown_clearing_number if the clearing number is unknown" do BankTools::SE::Account.new("10000000009").errors.should include(BankTools::SE::Errors::UNKNOWN_CLEARING_NUMBER)