Sha256: f0eeabe9f98aa245860e9bdef7e96dd78e69f85b0c53dc769635ec0d9e03bc33

Contents?: true

Size: 583 Bytes

Versions: 30

Compression:

Stored size: 583 Bytes

Contents

require 'test_helper'

class PaymentMethodPaypalwpTest < ActiveSupport::TestCase

  test "validations" do
    pm = NimbleshopPaypalwp::Paypalwp.new(name: 'Paypalwp', description: 'this is description')
    refute pm.valid?
    assert_equal ["Merchant email can't be blank", "Merchant email is invalid"], pm.errors.full_messages.sort
  end

  test "should save the record" do
    pm = NimbleshopPaypalwp::Paypalwp.new(name: 'Paypalwp', merchant_email: 'merchant@example.com', description: 'this is description')
    assert pm.save
    assert_match /paypalwp/, pm.permalink
  end

end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
nimbleshop_paypalwp-0.0.23 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.21 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.20 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.19 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.17 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.16 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.15 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.14 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.14.rc2 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.14.rc1 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.13 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.12 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.11 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.10 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.9 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.8 test/unit/payment_method_test.rb
nimbleshop_paypalwp-0.0.7 test/unit/payment_method_test.rb
nimbleshop_core-0.0.5 test/unit/payment_method/paypalwp_test.rb
nimbleshop_core-0.0.4.beta1 test/unit/payment_method/paypalwp_test.rb
nimbleshop_core-0.0.4 test/unit/payment_method/paypalwp_test.rb