Sha256: 47fc9ab9f807f0e7cf71ea455afab0cbf2093a10b4c253389d77d2181557db72

Contents?: true

Size: 1004 Bytes

Versions: 15

Compression:

Stored size: 1004 Bytes

Contents

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

describe Ipizza::Provider::Nordea do
  describe '#authentication_request' do
    before(:each) do
      @req = Ipizza::Provider::Nordea.new.authentication_request
    end
    
    it 'returns signed authentication request object' do
      @req.request_params.fetch('A01Y_MAC').should be
    end
    
    it 'adds service url to request' do
      @req.service_url.should == Ipizza::Provider::Nordea.auth_service_url
    end

    it 'adds return url from configuration to request' do
      @req.request_params.fetch('A01Y_RETLINK').should == Ipizza::Provider::Nordea.auth_return_url
    end

    it 'adds cancel url from configuration to request' do
      @req.request_params.fetch('A01Y_CANLINK').should == Ipizza::Provider::Nordea.auth_cancel_url
    end

    it 'adds reject url from configuration to request' do
      @req.request_params.fetch('A01Y_REJLINK').should == Ipizza::Provider::Nordea.auth_reject_url
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ipizza-2.1.0 spec/ipizza/provider/nordea_spec.rb
ipizza-2.0.1 spec/ipizza/provider/nordea_spec.rb
ipizza-2.0.0 spec/ipizza/provider/nordea_spec.rb
ipizza-1.0.0 spec/ipizza/provider/nordea_spec.rb
ipizza-0.7.1 spec/ipizza/provider/nordea_spec.rb
ipizza-0.6.1 spec/ipizza/provider/nordea_spec.rb
ipizza-0.5.5 spec/ipizza/provider/nordea_spec.rb
ipizza-0.5.4 spec/ipizza/provider/nordea_spec.rb
ipizza-0.5.3 spec/ipizza/provider/nordea_spec.rb
ipizza-0.5.2 spec/ipizza/provider/nordea_spec.rb
ipizza-0.5.1 spec/ipizza/provider/nordea_spec.rb
ipizza-0.5.0 spec/ipizza/provider/nordea_spec.rb
ipizza-0.4.4 spec/ipizza/provider/nordea_spec.rb
ipizza-0.4.3 spec/ipizza/provider/nordea_spec.rb
ipizza-0.4.2 spec/ipizza/provider/nordea_spec.rb