Sha256: b80f423eac4d0c5813ef155e26ba29f7d3ceac907c1b99ea6364447bcb752b03

Contents?: true

Size: 970 Bytes

Versions: 5

Compression:

Stored size: 970 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Ipizza::Provider do
  describe '.get' do
    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 nordea provider for "nordea" attribute' do
      Ipizza::Provider.get('nordea').should be_a(Ipizza::Provider::Nordea)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ipizza-0.6.1 spec/ipizza/provider_spec.rb
ipizza-0.5.5 spec/ipizza/provider_spec.rb
ipizza-0.5.4 spec/ipizza/provider_spec.rb
ipizza-0.5.3 spec/ipizza/provider_spec.rb
ipizza-0.5.2 spec/ipizza/provider_spec.rb