Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
52919f3d
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
52919f3d
编写于
8月 08, 2018
作者:
K
Kazuhiro Sera
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix the obvious typos detected by github.com/client9/misspell
上级
a6e86dd2
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
19 addition
and
19 deletion
+19
-19
actionmailer/test/test_helper_test.rb
actionmailer/test/test_helper_test.rb
+1
-1
activerecord/test/cases/arel/attributes/math_test.rb
activerecord/test/cases/arel/attributes/math_test.rb
+10
-10
activerecord/test/cases/arel/select_manager_test.rb
activerecord/test/cases/arel/select_manager_test.rb
+1
-1
activerecord/test/cases/arel/visitors/postgres_test.rb
activerecord/test/cases/arel/visitors/postgres_test.rb
+3
-3
activerecord/test/cases/arel/visitors/to_sql_test.rb
activerecord/test/cases/arel/visitors/to_sql_test.rb
+1
-1
activerecord/test/cases/relation/select_test.rb
activerecord/test/cases/relation/select_test.rb
+1
-1
activesupport/test/cache/behaviors/cache_store_behavior.rb
activesupport/test/cache/behaviors/cache_store_behavior.rb
+1
-1
railties/lib/rails/commands/server/server_command.rb
railties/lib/rails/commands/server/server_command.rb
+1
-1
未找到文件。
actionmailer/test/test_helper_test.rb
浏览文件 @
52919f3d
...
...
@@ -290,7 +290,7 @@ def test_assert_enqueued_email_with_with_parameterized_args
end
end
def
test_assert_enqueued_email_with_with_no_block_wi
ht
_parameterized_args
def
test_assert_enqueued_email_with_with_no_block_wi
th
_parameterized_args
assert_nothing_raised
do
silence_stream
(
$stdout
)
do
TestHelperMailer
.
with
(
all:
"good"
).
test_parameter_args
.
deliver_later
...
...
activerecord/test/cases/arel/attributes/math_test.rb
浏览文件 @
52919f3d
...
...
@@ -6,35 +6,35 @@ module Arel
module
Attributes
class
MathTest
<
Arel
::
Spec
%i[* /]
.
each
do
|
math_operator
|
it
"average should be compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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 compati
a
ble 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)
...
...
activerecord/test/cases/arel/select_manager_test.rb
浏览文件 @
52919f3d
...
...
@@ -278,7 +278,7 @@ def test_join_sources
@m2
.
where
(
table
[
:age
].
lt
(
99
))
end
it
"should inter
e
ct two managers"
do
it
"should inter
a
ct two managers"
do
# FIXME should this intersect "managers" or "statements" ?
# FIXME this probably shouldn't return a node
node
=
@m1
.
intersect
@m2
...
...
activerecord/test/cases/arel/visitors/postgres_test.rb
浏览文件 @
52919f3d
...
...
@@ -215,7 +215,7 @@ def compile(node)
}
end
it
"should know how to generate par
a
nthesis when supplied with many Dimensions"
do
it
"should know how to generate par
e
nthesis 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 par
a
nthesis when supplied with many Dimensions"
do
it
"should know how to generate par
e
nthesis 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 par
a
nthesis when supplied with many Dimensions"
do
it
"should know how to generate par
e
nthesis 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
])
...
...
activerecord/test/cases/arel/visitors/to_sql_test.rb
浏览文件 @
52919f3d
...
...
@@ -427,7 +427,7 @@ def dispatch
compile
(
node
).
must_equal
%(("products"."price" - 7))
end
it
"should handle Concat
i
nation"
do
it
"should handle Concat
e
nation"
do
table
=
Table
.
new
(
:users
)
node
=
table
[
:name
].
concat
(
table
[
:name
])
compile
(
node
).
must_equal
%("users"."name" || "users"."name")
...
...
activerecord/test/cases/relation/select_test.rb
浏览文件 @
52919f3d
...
...
@@ -7,7 +7,7 @@ module ActiveRecord
class
SelectTest
<
ActiveRecord
::
TestCase
fixtures
:posts
def
test_select_with_nil_a
gr
ument
def
test_select_with_nil_a
rg
ument
expected
=
Post
.
select
(
:title
).
to_sql
assert_equal
expected
,
Post
.
select
(
nil
).
select
(
:title
).
to_sql
end
...
...
activesupport/test/cache/behaviors/cache_store_behavior.rb
浏览文件 @
52919f3d
...
...
@@ -148,7 +148,7 @@ def test_fetch_multi_without_block
end
end
# Use strings that are guar
e
nteed to compress well, so we can easily tell if
# Use strings that are guar
a
nteed to compress well, so we can easily tell if
# the compression kicked in or not.
SMALL_STRING
=
"0"
*
100
LARGE_STRING
=
"0"
*
2
.
kilobytes
...
...
railties/lib/rails/commands/server/server_command.rb
浏览文件 @
52919f3d
...
...
@@ -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` occur
r
ences 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录