forked from rails-sqlserver/activerecord-sqlserver-adapter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4449d6e
commit 4afee37
Showing
4 changed files
with
32 additions
and
8 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
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
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
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,24 @@ | ||
require 'cases/sqlserver_helper' | ||
|
||
class ValidationsTestSqlserver < ActiveRecord::TestCase | ||
end | ||
|
||
class ValidationsTest < ActiveRecord::TestCase | ||
|
||
COERCED_TESTS = [:test_validate_uniqueness_with_limit_and_utf8] | ||
|
||
include SqlserverCoercedTest | ||
|
||
# Because SQL Server converts UTF8 data to some other data type, there is no such thing as a | ||
# one to byte length check. See this article for details: | ||
# http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=362867 | ||
# | ||
# Had the idea of doing this, but could not since the above was true. | ||
# Event.connection.change_column :events, :title, :nvarchar, :limit => 5 | ||
# Event.reset_column_information | ||
def test_coerced_test_validate_uniqueness_with_limit_and_utf8 | ||
assert true | ||
end | ||
|
||
end | ||
|