Sha256: 7e35ea956f76049c479808c88ea6ba16f6bd29382a84b3e8d680eab4f259e4c4

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

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
      Ipizza::Provider.get('hp').should be_a(Ipizza::Provider::Swedbank)
    end
    
    it 'returns seb provider for "eyp" attribute' do
      Ipizza::Provider.get('eyp').should be_a(Ipizza::Provider::Seb)
    end

    it 'returns seb provider for "seb" attribute' do
      Ipizza::Provider.get('seb').should be_a(Ipizza::Provider::Seb)
    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
      Ipizza::Provider.get('krediidipank').should be_a(Ipizza::Provider::Krediidipank)
    end
    
    it 'returns nordea provider for "nordea" attribute' do
      Ipizza::Provider.get('nordea').should be_a(Ipizza::Provider::Nordea)
    end

    it 'returns nothing for "unkn" attribute' do
      Ipizza::Provider.get('unkn').should be_nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ipizza-2.0.1 spec/ipizza/provider_spec.rb