ibandit 0.11.27 → 0.11.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ibandit/iban.rb +1 -0
- data/lib/ibandit/version.rb +1 -1
- data/spec/ibandit/iban_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31afcc0a061c33a69c2fdf4dc857603ebb91fd7c
|
4
|
+
data.tar.gz: 7f692e0706dc2410613e2e246349f95d9c6f938e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f41f600cbd7a54a809ebdb8d9f4b3976aa23cdace895d03f4184585ebfe615bbfd9c12920df48d438e1d0ad8c15e52ba434e1d8a3803ca588e71e573ae8ae01
|
7
|
+
data.tar.gz: 0d269f41269d38e134b54e83a5c559fd75e5fabbd0d86fd8b461cb6f7eab7418fbe7a2af2f662b3c0dc30f83a293c312966f9e52529761557791bbc495a3e316
|
data/CHANGELOG.md
CHANGED
data/lib/ibandit/iban.rb
CHANGED
data/lib/ibandit/version.rb
CHANGED
data/spec/ibandit/iban_spec.rb
CHANGED
@@ -683,6 +683,18 @@ describe Ibandit::IBAN do
|
|
683
683
|
its(:to_s) { is_expected.to eq("") }
|
684
684
|
end
|
685
685
|
|
686
|
+
context "and bank code that is nil" do
|
687
|
+
let(:bank_code) { nil }
|
688
|
+
let(:account_number) { "01234567890123456" }
|
689
|
+
|
690
|
+
its(:iban) { is_expected.to be_nil }
|
691
|
+
|
692
|
+
it "returns an error on bank_code attribute" do
|
693
|
+
expect(subject.valid?).to eq(false)
|
694
|
+
expect(subject.errors).to eq(bank_code: "is required")
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
686
698
|
context "and a 17 digit account number" do
|
687
699
|
let(:account_number) { "01234567890123456" }
|
688
700
|
let(:bank_code) { "965498456" }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibandit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|