forked from rails-sqlserver/activerecord-sqlserver-adapter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coerce test_read_attributes_before_type_cast_on_datetime(BasicsTest) …
…to pass.
- Loading branch information
1 parent
ed14c8d
commit a9e37b5
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |