mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix the obvious typos detected by github.com/client9/misspell
This commit is contained in:
parent
a6e86dd2a8
commit
52919f3d13
8 changed files with 19 additions and 19 deletions
|
@ -290,7 +290,7 @@ class TestHelperMailerTest < ActionMailer::TestCase
|
|||
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 @@ module Arel
|
|||
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 @@ module Arel
|
|||
@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 @@ module Arel
|
|||
}
|
||||
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 @@ module Arel
|
|||
}
|
||||
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 @@ module Arel
|
|||
}
|
||||
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 @@ module Arel
|
|||
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 @@ module CacheStoreBehavior
|
|||
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 @@ module Rails
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue