aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/view_test.rb
diff options
context:
space:
mode:
authorKen Collins <ken@metaskills.net>2017-01-15 21:33:47 -0500
committerKen Collins <ken@metaskills.net>2017-01-16 08:58:04 -0500
commit984873003c4b0ac834f9fc1491629a8e7bcea364 (patch)
tree8c409677b055d89b4d67f28731c28a8745980358 /activerecord/test/cases/view_test.rb
parentf5d66cb3e5fc48c89c41c522804b70f3e5fcbc47 (diff)
downloadrails-984873003c4b0ac834f9fc1491629a8e7bcea364.tar.gz
rails-984873003c4b0ac834f9fc1491629a8e7bcea364.tar.bz2
rails-984873003c4b0ac834f9fc1491629a8e7bcea364.zip
Allow SQLServerAdapter to opt into a few tests.
Diffstat (limited to 'activerecord/test/cases/view_test.rb')
-rw-r--r--activerecord/test/cases/view_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/view_test.rb b/activerecord/test/cases/view_test.rb
index d055968a56..07288568e8 100644
--- a/activerecord/test/cases/view_test.rb
+++ b/activerecord/test/cases/view_test.rb
@@ -154,7 +154,7 @@ if ActiveRecord::Base.connection.supports_views?
end
# sqlite dose not support CREATE, INSERT, and DELETE for VIEW
- if current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter)
+ if current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter)
class UpdateableViewTest < ActiveRecord::TestCase
self.use_transactional_tests = false
fixtures :books
@@ -200,7 +200,7 @@ if ActiveRecord::Base.connection.supports_views?
end
end
end
- end # end of `if current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter)`
+ end # end of `if current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter)`
end # end of `if ActiveRecord::Base.connection.supports_views?`
if ActiveRecord::Base.connection.respond_to?(:supports_materialized_views?) &&