Sha256: fbb33ad6a11731629692308f366205e401259c3bc6ae49ca7590c5190a7f9ae6
Contents?: true
Size: 998 Bytes
Versions: 10
Compression:
Stored size: 998 Bytes
Contents
require 'cases/sqlserver_helper' class StringDefault < ActiveRecord::Base; end; class SpecificSchemaTestSqlserver < ActiveRecord::TestCase should 'default strings before save' do default = StringDefault.new assert_equal nil, default.string_with_null_default assert_equal 'null', default.string_with_pretend_null_one assert_equal '(null)', default.string_with_pretend_null_two assert_equal 'NULL', default.string_with_pretend_null_three assert_equal '(NULL)', default.string_with_pretend_null_four assert_equal '(3)', default.string_with_pretend_paren_three end should 'default strings after save' do default = StringDefault.create assert_equal nil, default.string_with_null_default assert_equal 'null', default.string_with_pretend_null_one assert_equal '(null)', default.string_with_pretend_null_two assert_equal 'NULL', default.string_with_pretend_null_three assert_equal '(NULL)', default.string_with_pretend_null_four end end
Version data entries
10 entries across 10 versions & 4 rubygems