Skip to content

Commit 15b753a

Browse files
committed
Fixing typo and mocha warning when running tests
1 parent 99535ac commit 15b753a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/cases/sqlserver_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
require 'bundler'
1414
Bundler.setup
1515
require 'shoulda'
16-
require 'mocha'
16+
require 'mocha/setup'
1717
require 'active_support/dependencies'
1818
require 'active_record'
1919
require 'active_record/version'
@@ -27,7 +27,7 @@
2727
ActiveRecord::Base.logger = Logger.new(File.expand_path(File.join(SQLSERVER_TEST_ROOT,'debug.log')))
2828
ActiveRecord::Base.logger.level = 0
2929

30-
# Defining our classes in one place as well as soem core tests that need coercing date/time types.
30+
# Defining our classes in one place as well as some core tests that need coercing date/time types.
3131

3232
class UpperTestDefault < ActiveRecord::Base ; self.table_name = 'UPPER_TESTS' ; end
3333
class UpperTestLowered < ActiveRecord::Base ; self.table_name = 'upper_tests' ; end
@@ -105,14 +105,14 @@ def method_added(method)
105105

106106
module ActiveRecord
107107
class SQLCounter
108-
self.ignored_sql.concat([
108+
self.ignored_sql.concat([
109109
%r|SELECT SCOPE_IDENTITY|, %r{INFORMATION_SCHEMA\.(TABLES|VIEWS|COLUMNS)},
110110
%r|SELECT @@version|, %r|SELECT @@TRANCOUNT|, %r{(BEGIN|COMMIT|ROLLBACK|SAVE) TRANSACTION}
111111
])
112112
end
113113
end
114114

115-
module ActiveRecord
115+
module ActiveRecord
116116
class TestCase < ActiveSupport::TestCase
117117
class << self
118118
def connection_mode_dblib? ; ActiveRecord::Base.connection.instance_variable_get(:@connection_options)[:mode] == :dblib ; end

0 commit comments

Comments
 (0)