spec/ipizza/provider_spec.rb in ipizza-1.0.0 vs spec/ipizza/provider_spec.rb in ipizza-2.0.0
- old
+ new
@@ -1,9 +1,13 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Ipizza::Provider do
describe '.get' do
+ it 'returns LHV provider for "lhv" attribute' do
+ Ipizza::Provider.get('lhv').should be_a(Ipizza::Provider::Lhv)
+ end
+
it 'returns swedbank provider for "swedbank" attribute' do
Ipizza::Provider.get('swedbank').should be_a(Ipizza::Provider::Swedbank)
end
it 'returns swedbank provider for "hp" attribute' do
@@ -19,10 +23,14 @@
end
it 'returns sampo provider for "sampo" attribute' do
Ipizza::Provider.get('sampo').should be_a(Ipizza::Provider::Sampo)
end
-
+
+ it 'returns sampo provider for "danske" attribute' do
+ Ipizza::Provider.get('danske').should be_a(Ipizza::Provider::Sampo)
+ end
+
it 'returns krediidipank provider for "krep" attribute' do
Ipizza::Provider.get('krep').should be_a(Ipizza::Provider::Krediidipank)
end
it 'returns krediidipank provider for "krediidipank" attribute' do