spec/lib/opay/helpers/payu_helper_spec.rb in opay-1.0.6 vs spec/lib/opay/helpers/payu_helper_spec.rb in opay-1.0.7
- old
+ new
@@ -7,10 +7,10 @@
before do
@order = Order.create! name: 'first order', amount: 1000 # 10 zł
end
it 'creates form tag' do
- html = helper.payu_form_for(@order) do |f|
+ html = helper.opay_form_for(@order) 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="https://www.platnosci.pl/paygw/UTF/NewPayment"]')
html.should have_css('form[method="post"]')