提交 250c0d08 编写于 作者: A Akira Matsuda

Typos in AR tests

上级 e22404a8
......@@ -2271,7 +2271,7 @@ def test_collection_association_with_private_kernel_method
assert_equal [], authors(:david).posts_with_signature.map(&:title)
end
test 'associations autosaves when object is already persited' do
test 'associations autosaves when object is already persisted' do
bulb = Bulb.create!
tyre = Tyre.create!
......
......@@ -798,7 +798,7 @@ def test_global_methods_are_overwritten
assert_nil computer.system
end
def test_global_methods_are_overwritte_when_subclassing
def test_global_methods_are_overwritten_when_subclassing
klass = Class.new(ActiveRecord::Base) { self.abstract_class = true }
subklass = Class.new(klass) do
......
......@@ -7,7 +7,7 @@ class RecordFetchWarningTest < ActiveRecord::TestCase
def test_warn_on_records_fetched_greater_than
original_logger = ActiveRecord::Base.logger
orginal_warn_on_records_fetched_greater_than = ActiveRecord::Base.warn_on_records_fetched_greater_than
original_warn_on_records_fetched_greater_than = ActiveRecord::Base.warn_on_records_fetched_greater_than
log = StringIO.new
ActiveRecord::Base.logger = ActiveSupport::Logger.new(log)
......@@ -22,7 +22,7 @@ def test_warn_on_records_fetched_greater_than
assert_match(/Query fetched/, log.string)
ensure
ActiveRecord::Base.logger = original_logger
ActiveRecord::Base.warn_on_records_fetched_greater_than = orginal_warn_on_records_fetched_greater_than
ActiveRecord::Base.warn_on_records_fetched_greater_than = original_warn_on_records_fetched_greater_than
end
end
end
......@@ -104,7 +104,7 @@ class StoreTest < ActiveRecord::TestCase
assert_equal true, user.settings.instance_of?(ActiveSupport::HashWithIndifferentAccess)
end
test "convert store attributes from any format other than Hash or HashWithIndifferent access losing the data" do
test "convert store attributes from any format other than Hash or HashWithIndifferentAccess losing the data" do
@john.json_data = "somedata"
@john.height = 'low'
assert_equal true, @john.json_data.instance_of?(ActiveSupport::HashWithIndifferentAccess)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册