Skip to content

Commit

Permalink
Coerce test_read_attributes_before_type_cast_on_datetime(BasicsTest) …
Browse files Browse the repository at this point in the history
…to pass.
  • Loading branch information
metaskills committed Nov 12, 2008
1 parent ed14c8d commit a9e37b5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/cases/basics_test_sqlserver.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'cases/sqlserver_helper'
require 'models/developer'

class BasicsTestSqlserver < ActiveRecord::TestCase
end

class BasicsTest < ActiveRecord::TestCase

COERCED_TESTS = [:test_read_attributes_before_type_cast_on_datetime]

include SqlserverCoercedTest

fixtures :developers

def test_coerced_test_read_attributes_before_type_cast_on_datetime
developer = Developer.find(:first)
assert_equal developer.created_at.to_s(:db)+'.000' , developer.attributes_before_type_cast["created_at"]
end


end

0 comments on commit a9e37b5

Please sign in to comment.