提交 c8b5d828 编写于 作者: B Benjamin Fleischer

Correct spelling

```
go get -u github.com/client9/misspell/cmd/misspell
misspell  -w -error -source=text .
```
上级 b9ae7481
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.14
# from Racc grammer file "".
# from Racc grammar file "".
#
require 'racc/parser.rb'
......
......@@ -584,7 +584,7 @@ def test_running_actions_with_class
assert @controller.instance_variable_get(:@was_audited)
end
def test_running_anomolous_yet_valid_condition_actions
def test_running_anomalous_yet_valid_condition_actions
test_process(AnomolousYetValidConditionController)
assert_equal %w( ensure_login ), @controller.instance_variable_get(:@ran_filter)
assert @controller.instance_variable_get(:@ran_class_action)
......
......@@ -494,7 +494,7 @@ def test_respect_removal_of_default_headers_by_a_controller_action
assert_includes @response.headers, "c"
end
def test_accept_not_overriden_when_xhr_true
def test_accept_not_overridden_when_xhr_true
with_test_route_set do
get "/get", headers: { "Accept" => "application/json" }, xhr: true
assert_equal "application/json", request.accept
......
......@@ -519,7 +519,7 @@ def test_handle_any_any_xml
assert_equal "Whatever you ask for, I got it", @response.body
end
def test_handle_any_any_unkown_format
def test_handle_any_any_unknown_format
get :handle_any_any, format: "php"
assert_equal "Whatever you ask for, I got it", @response.body
end
......
......@@ -163,7 +163,7 @@ def test_does_not_modify_path_info
assert_equal file_name, env["PATH_INFO"]
end
def test_serves_gzip_with_propper_content_type_fallback
def test_serves_gzip_with_proper_content_type_fallback
file_name = "/gzip/foo.zoo"
response = get(file_name, "HTTP_ACCEPT_ENCODING" => "gzip")
assert_gzip file_name, response
......
......@@ -111,7 +111,7 @@ $.extend({
*
* @name metadata
* @descr Returns element's metadata object
* @param Object opts An object contianing settings to override the defaults
* @param Object opts An object containing settings to override the defaults
* @type jQuery
* @cat Plugins/Metadata
*/
......
......@@ -171,7 +171,7 @@
*Rafael Mendonça França*
* Set `:time` as a timezone aware type and remove deprecation when
`config.active_record.time_zone_aware_types` is not explictly set.
`config.active_record.time_zone_aware_types` is not explicitly set.
*Rafael Mendonça França*
......
......@@ -92,8 +92,8 @@ def (ActiveRecord::Base.connection).index_name_exists?(*); false; end
assert_equal expected, actual
end
expected = "ALTER TABLE `peaple` ADD INDEX `index_peaple_on_last_name` USING btree (`last_name`(10)), ALGORITHM = COPY"
actual = ActiveRecord::Base.connection.change_table(:peaple, bulk: true) do |t|
expected = "ALTER TABLE `people` ADD INDEX `index_people_on_last_name` USING btree (`last_name`(10)), ALGORITHM = COPY"
actual = ActiveRecord::Base.connection.change_table(:people, bulk: true) do |t|
t.index :last_name, length: 10, using: :btree, algorithm: :copy
end
assert_equal expected, actual
......
......@@ -120,7 +120,7 @@ def test_mysql_sql_mode_variable_overrides_strict_mode
end
end
def test_passing_arbitary_flags_to_adapter
def test_passing_arbitrary_flags_to_adapter
run_without_connection do |orig_connection|
ActiveRecord::Base.establish_connection(orig_connection.merge(flags: Mysql2::Client::COMPRESS))
assert_equal (Mysql2::Client::COMPRESS | Mysql2::Client::FOUND_ROWS), ActiveRecord::Base.connection.raw_connection.query_options[:flags]
......
......@@ -745,8 +745,8 @@ def test_find_scoped_grouped
end
def test_find_scoped_grouped_having
assert_equal 2, projects(:active_record).well_payed_salary_groups.to_a.size
assert projects(:active_record).well_payed_salary_groups.all? { |g| g.salary > 10000 }
assert_equal 2, projects(:active_record).well_paid_salary_groups.to_a.size
assert projects(:active_record).well_paid_salary_groups.all? { |g| g.salary > 10000 }
end
def test_get_ids
......
......@@ -661,7 +661,7 @@ class SpecialSupscription < ActiveRecord::Base
belongs_to :book, class_name: "SpecialBook"
end
def test_assocation_enum_works_properly
def test_association_enum_works_properly
author = SpecialAuthor.create!(name: "Test")
book = SpecialBook.create!(status: "published")
author.book = book
......@@ -669,7 +669,7 @@ def test_assocation_enum_works_properly
refute_equal 0, SpecialAuthor.joins(:book).where(books: { status: "published" }).count
end
def test_assocation_enum_works_properly_with_nested_join
def test_association_enum_works_properly_with_nested_join
author = SpecialAuthor.create!(name: "Test")
book = SpecialBook.create!(status: "published")
author.book = book
......
......@@ -441,7 +441,7 @@ def test_disconnect_and_clear_reloadable_connections_attempt_to_wait_for_threads
end
end
def test_bang_versions_of_disconnect_and_clear_reloadable_connections_if_unable_to_aquire_all_connections_proceed_anyway
def test_bang_versions_of_disconnect_and_clear_reloadable_connections_if_unable_to_acquire_all_connections_proceed_anyway
@pool.checkout_timeout = 0.001 # no need to delay test suite by waiting the whole full default timeout
[:disconnect!, :clear_reloadable_connections!].each do |group_action_method|
@pool.with_connection do |connection|
......
......@@ -863,13 +863,13 @@ def test_bind_variables
end
def test_bind_variables_with_quotes
Company.create("name" => "37signals' go'es agains")
assert Company.where(["name = ?", "37signals' go'es agains"]).first
Company.create("name" => "37signals' go'es against")
assert Company.where(["name = ?", "37signals' go'es against"]).first
end
def test_named_bind_variables_with_quotes
Company.create("name" => "37signals' go'es agains")
assert Company.where(["name = :name", { name: "37signals' go'es agains" }]).first
Company.create("name" => "37signals' go'es against")
assert Company.where(["name = :name", { name: "37signals' go'es against" }]).first
end
def test_named_bind_variables
......
......@@ -6,6 +6,6 @@ second:
nick: webster132
name: David Heinemeier Hansson
thrid:
third:
nick: swistak
name: Marcin Raczkowski
\ No newline at end of file
......@@ -11,7 +11,7 @@ class Project < ActiveRecord::Base
after_add: Proc.new { |o, r| o.developers_log << "after_adding#{r.id || '<new>'}" },
before_remove: Proc.new { |o, r| o.developers_log << "before_removing#{r.id}" },
after_remove: Proc.new { |o, r| o.developers_log << "after_removing#{r.id}" }
has_and_belongs_to_many :well_payed_salary_groups, -> { group("developers.salary").having("SUM(salary) > 10000").select("SUM(salary) as salary") }, class_name: "Developer"
has_and_belongs_to_many :well_paid_salary_groups, -> { group("developers.salary").having("SUM(salary) > 10000").select("SUM(salary) as salary") }, class_name: "Developer"
belongs_to :firm
has_one :lead_developer, through: :firm, inverse_of: :contracted_projects
......
RaisesArbitraryException = 1
_ = A::B # Autoloading recursion, also expected to be watched and discarded.
raise Exception, "arbitray exception message"
raise Exception, "arbitrary exception message"
......@@ -52,8 +52,8 @@ def test_aliasing_to_uppercase_attributes
assert_equal "No, really, this is not a joke.", e.Data
assert e.Data?
e.Data = "Uppercased methods are teh suck"
assert_equal "Uppercased methods are teh suck", e.body
e.Data = "Uppercased methods are the suck"
assert_equal "Uppercased methods are the suck", e.body
assert e.body?
end
end
......@@ -272,7 +272,7 @@ def test_nested_class_can_access_sibling
def test_raising_discards_autoloaded_constants
with_autoloading_fixtures do
e = assert_raises(Exception) { RaisesArbitraryException }
assert_equal("arbitray exception message", e.message)
assert_equal("arbitrary exception message", e.message)
assert_not defined?(A)
assert_not defined?(RaisesArbitraryException)
end
......
......@@ -39,7 +39,7 @@ def touch(files)
checker = new_checker(tmpfiles) {}
assert !checker.updated?
# Pipes used for flow controll across fork.
# Pipes used for flow control across fork.
boot_reader, boot_writer = IO.pipe
touch_reader, touch_writer = IO.pipe
......
......@@ -50,7 +50,7 @@ def test_methods_are_forwarded_to_wrapped_string_for_byte_strings
assert_equal BYTE_STRING.length, BYTE_STRING.mb_chars.length
end
def test_forwarded_method_with_non_string_result_should_be_returned_vertabim
def test_forwarded_method_with_non_string_result_should_be_returned_verbatim
str = ""
str.singleton_class.class_eval { def __method_for_multibyte_testing_with_integer_result; 1; end }
@chars.wrapped_string.singleton_class.class_eval { def __method_for_multibyte_testing_with_integer_result; 1; end }
......
......@@ -51,7 +51,7 @@ def app(env = "development")
def setup
build_app
supress_default_config
suppress_default_config
end
def teardown
......@@ -59,7 +59,7 @@ def teardown
FileUtils.rm_rf(new_app) if File.directory?(new_app)
end
def supress_default_config
def suppress_default_config
FileUtils.mv("#{app_path}/config/environments", "#{app_path}/config/__environments__")
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册