1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] fix spelling of override

This commit is contained in:
Akshay Vishnoi 2014-08-13 16:47:28 +05:30
parent 82e28492e7
commit 12ce5b1cf6
4 changed files with 5 additions and 5 deletions

View file

@ -640,7 +640,7 @@ end
class RequestMethod < BaseRequestTest class RequestMethod < BaseRequestTest
test "method returns environment's request method when it has not been test "method returns environment's request method when it has not been
overriden by middleware".squish do overridden by middleware".squish do
ActionDispatch::Request::HTTP_METHODS.each do |method| ActionDispatch::Request::HTTP_METHODS.each do |method|
request = stub_request('REQUEST_METHOD' => method) request = stub_request('REQUEST_METHOD' => method)

View file

@ -69,8 +69,8 @@ module ActiveRecord
end end
# Determines whether the mutable value has been modified since it was # Determines whether the mutable value has been modified since it was
# read. Returns +false+ by default. This method should not need to be # read. Returns +false+ by default. This method should not be overridden
# overriden directly. Types which return a mutable value should include # directly. Types which return a mutable value should include
# +Type::Mutable+, which will define this method. # +Type::Mutable+, which will define this method.
def changed_in_place?(*) def changed_in_place?(*)
false false

View file

@ -150,7 +150,7 @@ class MysqlConnectionTest < ActiveRecord::TestCase
end end
end end
def test_mysql_sql_mode_variable_overides_strict_mode def test_mysql_sql_mode_variable_overrides_strict_mode
run_without_connection do |orig_connection| run_without_connection do |orig_connection|
ActiveRecord::Base.establish_connection(orig_connection.deep_merge(variables: { 'sql_mode' => 'ansi' })) ActiveRecord::Base.establish_connection(orig_connection.deep_merge(variables: { 'sql_mode' => 'ansi' }))
result = ActiveRecord::Base.connection.exec_query 'SELECT @@SESSION.sql_mode' result = ActiveRecord::Base.connection.exec_query 'SELECT @@SESSION.sql_mode'

View file

@ -76,7 +76,7 @@ class MysqlConnectionTest < ActiveRecord::TestCase
end end
end end
def test_mysql_sql_mode_variable_overides_strict_mode def test_mysql_sql_mode_variable_overrides_strict_mode
run_without_connection do |orig_connection| run_without_connection do |orig_connection|
ActiveRecord::Base.establish_connection(orig_connection.deep_merge(variables: { 'sql_mode' => 'ansi' })) ActiveRecord::Base.establish_connection(orig_connection.deep_merge(variables: { 'sql_mode' => 'ansi' }))
result = ActiveRecord::Base.connection.exec_query 'SELECT @@SESSION.sql_mode' result = ActiveRecord::Base.connection.exec_query 'SELECT @@SESSION.sql_mode'