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