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 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