Sha256: 119e2e958da94980c089bf7dad9acbf7b56253c22129f22d8e6e35b59f2f72ef

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

require 'test_helper'

class RecordsTest < ActiveSupport::TestCase

  test 'nilify blanks' do
    shop = Shop.new(name: '')
    shop.save
    assert_nil shop.name
    assert_nil shop.reload.name
  end

  test 'validate' do
    assert Shop.new.respond_to?(:validate)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tuning-1.0.0 test/records_test.rb