提交 52919f3d 编写于 作者: K Kazuhiro Sera

Fix the obvious typos detected by github.com/client9/misspell

上级 a6e86dd2
......@@ -290,7 +290,7 @@ def test_assert_enqueued_email_with_with_parameterized_args
end
end
def test_assert_enqueued_email_with_with_no_block_wiht_parameterized_args
def test_assert_enqueued_email_with_with_no_block_with_parameterized_args
assert_nothing_raised do
silence_stream($stdout) do
TestHelperMailer.with(all: "good").test_parameter_args.deliver_later
......
......@@ -6,35 +6,35 @@ module Arel
module Attributes
class MathTest < Arel::Spec
%i[* /].each do |math_operator|
it "average should be compatiable with #{math_operator}" do
it "average should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].average.public_send(math_operator, 2)).to_sql.must_be_like %{
AVG("users"."id") #{math_operator} 2
}
end
it "count should be compatiable with #{math_operator}" do
it "count should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].count.public_send(math_operator, 2)).to_sql.must_be_like %{
COUNT("users"."id") #{math_operator} 2
}
end
it "maximum should be compatiable with #{math_operator}" do
it "maximum should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].maximum.public_send(math_operator, 2)).to_sql.must_be_like %{
MAX("users"."id") #{math_operator} 2
}
end
it "minimum should be compatiable with #{math_operator}" do
it "minimum should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].minimum.public_send(math_operator, 2)).to_sql.must_be_like %{
MIN("users"."id") #{math_operator} 2
}
end
it "attribute node should be compatiable with #{math_operator}" do
it "attribute node should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].public_send(math_operator, 2)).to_sql.must_be_like %{
"users"."id" #{math_operator} 2
......@@ -43,35 +43,35 @@ class MathTest < Arel::Spec
end
%i[+ - & | ^ << >>].each do |math_operator|
it "average should be compatiable with #{math_operator}" do
it "average should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].average.public_send(math_operator, 2)).to_sql.must_be_like %{
(AVG("users"."id") #{math_operator} 2)
}
end
it "count should be compatiable with #{math_operator}" do
it "count should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].count.public_send(math_operator, 2)).to_sql.must_be_like %{
(COUNT("users"."id") #{math_operator} 2)
}
end
it "maximum should be compatiable with #{math_operator}" do
it "maximum should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].maximum.public_send(math_operator, 2)).to_sql.must_be_like %{
(MAX("users"."id") #{math_operator} 2)
}
end
it "minimum should be compatiable with #{math_operator}" do
it "minimum should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].minimum.public_send(math_operator, 2)).to_sql.must_be_like %{
(MIN("users"."id") #{math_operator} 2)
}
end
it "attribute node should be compatiable with #{math_operator}" do
it "attribute node should be compatible with #{math_operator}" do
table = Arel::Table.new :users
(table[:id].public_send(math_operator, 2)).to_sql.must_be_like %{
("users"."id" #{math_operator} 2)
......
......@@ -278,7 +278,7 @@ def test_join_sources
@m2.where(table[:age].lt(99))
end
it "should interect two managers" do
it "should interact two managers" do
# FIXME should this intersect "managers" or "statements" ?
# FIXME this probably shouldn't return a node
node = @m1.intersect @m2
......
......@@ -215,7 +215,7 @@ def compile(node)
}
end
it "should know how to generate paranthesis when supplied with many Dimensions" do
it "should know how to generate parenthesis when supplied with many Dimensions" do
dim1 = Arel::Nodes::GroupingElement.new(@table[:name])
dim2 = Arel::Nodes::GroupingElement.new([@table[:bool], @table[:created_at]])
node = Arel::Nodes::Cube.new([dim1, dim2])
......@@ -241,7 +241,7 @@ def compile(node)
}
end
it "should know how to generate paranthesis when supplied with many Dimensions" do
it "should know how to generate parenthesis when supplied with many Dimensions" do
group1 = Arel::Nodes::GroupingElement.new(@table[:name])
group2 = Arel::Nodes::GroupingElement.new([@table[:bool], @table[:created_at]])
node = Arel::Nodes::GroupingSet.new([group1, group2])
......@@ -267,7 +267,7 @@ def compile(node)
}
end
it "should know how to generate paranthesis when supplied with many Dimensions" do
it "should know how to generate parenthesis when supplied with many Dimensions" do
group1 = Arel::Nodes::GroupingElement.new(@table[:name])
group2 = Arel::Nodes::GroupingElement.new([@table[:bool], @table[:created_at]])
node = Arel::Nodes::RollUp.new([group1, group2])
......
......@@ -427,7 +427,7 @@ def dispatch
compile(node).must_equal %(("products"."price" - 7))
end
it "should handle Concatination" do
it "should handle Concatenation" do
table = Table.new(:users)
node = table[:name].concat(table[:name])
compile(node).must_equal %("users"."name" || "users"."name")
......
......@@ -7,7 +7,7 @@ module ActiveRecord
class SelectTest < ActiveRecord::TestCase
fixtures :posts
def test_select_with_nil_agrument
def test_select_with_nil_argument
expected = Post.select(:title).to_sql
assert_equal expected, Post.select(nil).select(:title).to_sql
end
......
......@@ -148,7 +148,7 @@ def test_fetch_multi_without_block
end
end
# Use strings that are guarenteed to compress well, so we can easily tell if
# Use strings that are guaranteed to compress well, so we can easily tell if
# the compression kicked in or not.
SMALL_STRING = "0" * 100
LARGE_STRING = "0" * 2.kilobytes
......
......@@ -286,7 +286,7 @@ def deprecate_positional_rack_server_and_rewrite_to_option(original_options)
original_options.concat [ "-u", using ]
else
# Use positional internally to get around Thor's immutable options.
# TODO: Replace `using` occurences with `options[:using]` after deprecation removal.
# TODO: Replace `using` occurrences with `options[:using]` after deprecation removal.
@using = options[:using]
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册