Sha256: b0ad2a727ceb6ded3b74bcdabc20001d3fdd5884fa5e4c83d6c68f8201764eb5
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require 'test_helper' class HelperTest < ActionView::TestCase tests Versapay::Helpers test "creating a debit agreement link" do expected = '<a href="https://demo.versapay.com/authorize?api_token=' + Versapay::token + '&message=Testing+123">test</a>' assert_equal expected, debit_agreement_link_to("test", "Testing 123") end test "creating a debit agreement link with extra options" do expected = '<a href="https://demo.versapay.com/authorize?api_token=' + Versapay::token + '&message=Testing+123&reference=abc123">test</a>' assert_equal expected, debit_agreement_link_to("test", "Testing 123", {:reference => "abc123"}) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
versapay-0.1.0 | test/helper_test.rb |
versapay-0.0.1 | test/helper_test.rb |