Sha256: 38f65fde42107e261817af906656cb2b44f9b85aa9bb3150e40b8a1a4675e0cc
Contents?: true
Size: 614 Bytes
Versions: 11
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' module Opay describe Helpers::PaypalHelper, type: :helper do context 'form tag' do before do @order = Order.create! name: 'first order', amount: 2000 # 20 zł Opay.config.process_payments_localy = false end it 'creates form tag' do html = helper.opay_form_for(@order, provider: :paypal) do |f| f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' end html.should have_css('form[action="/opay/paypal/new"]') end end end end
Version data entries
11 entries across 11 versions & 1 rubygems