Sha256: 73d109f69bf5490f0c029883f29ddb9f6784e8dfc8bedde0dda739c91fc3878b
Contents?: true
Size: 548 Bytes
Versions: 28
Compression:
Stored size: 548 Bytes
Contents
require 'test_helper' class PaymentMethodSplitableTest < ActiveSupport::TestCase test "validations" do pm = NimbleshopSplitable::Splitable.new(name: 'Splitable', description: 'this is description') refute pm.valid? assert_equal ["Api key can't be blank"], pm.errors.full_messages.sort end test "should save the record" do pm = NimbleshopSplitable::Splitable.new(name: 'Splitable', description: 'this is description') pm.api_key = 'FWERSDEED093d' assert pm.save assert_match /splitable/, pm.permalink end end
Version data entries
28 entries across 28 versions & 2 rubygems