Sha256: 1e4489e875f7e6d4ec120f4c390a95228f5fe57807ed4d51deb57a7c8fa207d2

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

require 'test_helper'

class RecordTest < ActiveSupport::TestCase

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

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tuning-4.0.1.2 test/record_test.rb
tuning-4.0.1.1 test/record_test.rb
tuning-4.0.1.0 test/record_test.rb
tuning-4.0.0.1 test/record_test.rb
tuning-4.0.0.0 test/record_test.rb