Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
79bc9e81
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,发现更多精彩内容 >>
未验证
提交
79bc9e81
编写于
2月 01, 2019
作者:
E
Eileen M. Uchitelle
提交者:
GitHub
2月 01, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #35126 from alkesh26/railities-typo-fix
Railties typo fixes.
上级
eb1fc14d
79c3cef4
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
14 addition
and
14 deletion
+14
-14
railties/lib/minitest/rails_plugin.rb
railties/lib/minitest/rails_plugin.rb
+1
-1
railties/lib/rails/app_loader.rb
railties/lib/rails/app_loader.rb
+1
-1
railties/test/application/test_runner_test.rb
railties/test/application/test_runner_test.rb
+1
-1
railties/test/commands/credentials_test.rb
railties/test/commands/credentials_test.rb
+1
-1
railties/test/commands/dbconsole_test.rb
railties/test/commands/dbconsole_test.rb
+2
-2
railties/test/generators/app_generator_test.rb
railties/test/generators/app_generator_test.rb
+1
-1
railties/test/generators/mailer_generator_test.rb
railties/test/generators/mailer_generator_test.rb
+1
-1
railties/test/generators/model_generator_test.rb
railties/test/generators/model_generator_test.rb
+1
-1
railties/test/generators/plugin_generator_test.rb
railties/test/generators/plugin_generator_test.rb
+1
-1
railties/test/isolation/abstract_unit.rb
railties/test/isolation/abstract_unit.rb
+1
-1
railties/test/railties/mounted_engine_test.rb
railties/test/railties/mounted_engine_test.rb
+3
-3
未找到文件。
railties/lib/minitest/rails_plugin.rb
浏览文件 @
79bc9e81
...
...
@@ -54,6 +54,6 @@ def self.plugin_rails_init(options)
end
end
# Backwardscompatibility with Rails 5.0 generated plugin test scripts
# Backwards
compatibility with Rails 5.0 generated plugin test scripts
mattr_reader
:run_via
,
default:
{}
end
railties/lib/rails/app_loader.rb
浏览文件 @
79bc9e81
...
...
@@ -23,7 +23,7 @@ module AppLoader # :nodoc:
# too that you may or may not want (like yarn)
If you already have Rails binstubs in source control, you might be
inadverently overwriting them during deployment by using bundle install
inadver
t
ently overwriting them during deployment by using bundle install
with the --binstubs option.
If your application was created prior to Rails 4, here's how to upgrade:
...
...
railties/test/application/test_runner_test.rb
浏览文件 @
79bc9e81
...
...
@@ -16,7 +16,7 @@ def teardown
teardown_app
end
def
test_run_via_backwardscompatibility
def
test_run_via_backwards
_
compatibility
require
"minitest/rails_plugin"
assert_nothing_raised
do
...
...
railties/test/commands/credentials_test.rb
浏览文件 @
79bc9e81
...
...
@@ -63,7 +63,7 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase
end
end
test
"edit command does not raise when an initializer tries to acces non-existent credentials"
do
test
"edit command does not raise when an initializer tries to acces
s
non-existent credentials"
do
app_file
"config/initializers/raise_when_loaded.rb"
,
<<-
RUBY
Rails.application.credentials.missing_key!
RUBY
...
...
railties/test/commands/dbconsole_test.rb
浏览文件 @
79bc9e81
...
...
@@ -112,9 +112,9 @@ def test_mysql
end
def
test_mysql_full
start
(
adapter:
"mysql2"
,
database:
"db"
,
host:
"locahost"
,
port:
1234
,
socket:
"socket"
,
username:
"user"
,
password:
"qwerty"
,
encoding:
"UTF-8"
)
start
(
adapter:
"mysql2"
,
database:
"db"
,
host:
"loca
l
host"
,
port:
1234
,
socket:
"socket"
,
username:
"user"
,
password:
"qwerty"
,
encoding:
"UTF-8"
)
assert_not
aborted
assert_equal
[
%w[mysql mysql5]
,
"--host=locahost"
,
"--port=1234"
,
"--socket=socket"
,
"--user=user"
,
"--default-character-set=UTF-8"
,
"-p"
,
"db"
],
dbconsole
.
find_cmd_and_exec_args
assert_equal
[
%w[mysql mysql5]
,
"--host=loca
l
host"
,
"--port=1234"
,
"--socket=socket"
,
"--user=user"
,
"--default-character-set=UTF-8"
,
"-p"
,
"db"
],
dbconsole
.
find_cmd_and_exec_args
end
def
test_mysql_include_password
...
...
railties/test/generators/app_generator_test.rb
浏览文件 @
79bc9e81
...
...
@@ -199,7 +199,7 @@ def test_app_update_generates_correct_session_key
end
end
def
test_new_application_use_json_serial
zi
er
def
test_new_application_use_json_serial
iz
er
run_generator
assert_file
(
"config/initializers/cookies_serializer.rb"
,
/Rails\.application\.config\.action_dispatch\.cookies_serializer = :json/
)
...
...
railties/test/generators/mailer_generator_test.rb
浏览文件 @
79bc9e81
...
...
@@ -119,7 +119,7 @@ def test_logs_if_the_template_engine_cannot_be_found
assert_match
(
/haml \[not found\]/
,
content
)
end
def
test_mailer_with_name
d
spaced_mailer
def
test_mailer_with_namespaced_mailer
run_generator
[
"Farm::Animal"
,
"moos"
]
assert_file
"app/mailers/farm/animal_mailer.rb"
do
|
mailer
|
assert_match
(
/class Farm::AnimalMailer < ApplicationMailer/
,
mailer
)
...
...
railties/test/generators/model_generator_test.rb
浏览文件 @
79bc9e81
...
...
@@ -104,7 +104,7 @@ def test_migration_with_nested_namespace_without_pluralization
ActiveRecord
::
Base
.
pluralize_table_names
=
true
end
def
test_migration_with_namespaces_in_model_name_without_plurization
def
test_migration_with_namespaces_in_model_name_without_plur
al
ization
ActiveRecord
::
Base
.
pluralize_table_names
=
false
run_generator
[
"Gallery::Image"
]
assert_migration
"db/migrate/create_gallery_image"
,
/class CreateGalleryImage < ActiveRecord::Migration\[[0-9.]+\]/
...
...
railties/test/generators/plugin_generator_test.rb
浏览文件 @
79bc9e81
...
...
@@ -442,7 +442,7 @@ def test_creating_dummy_without_tests_but_with_dummy_path
end
end
def
test_dummy_app
p
lication_skip_listen_by_default
def
test_dummy_application_skip_listen_by_default
run_generator
assert_file
"test/dummy/config/environments/development.rb"
do
|
contents
|
...
...
railties/test/isolation/abstract_unit.rb
浏览文件 @
79bc9e81
...
...
@@ -483,7 +483,7 @@ class ActiveSupport::TestCase
Dir
.
chdir
(
app_template_path
)
{
`yarn add https://github.com/rails/webpacker.git`
}
# Use the latest version.
# Manually install `webpack` as bin symlinks are not created for subdependencies
# Manually install `webpack` as bin symlinks are not created for sub
dependencies
# in workspaces. See https://github.com/yarnpkg/yarn/issues/4964
Dir
.
chdir
(
app_template_path
)
{
`yarn add webpack@4.17.1 --tilde`
}
Dir
.
chdir
(
app_template_path
)
{
`yarn add webpack-cli`
}
...
...
railties/test/railties/mounted_engine_test.rb
浏览文件 @
79bc9e81
...
...
@@ -232,7 +232,7 @@ def app
get
"/someone/blog/generate_application_route"
assert_equal
"/"
,
last_response
.
body
get
"/somone/blog/application_route_in_view"
get
"/som
e
one/blog/application_route_in_view"
assert_equal
"/"
,
last_response
.
body
# test generating engine's route from other engine
...
...
@@ -258,8 +258,8 @@ def app
assert_equal
"http://example.org/anonymous/blog/posts/44"
,
last_response
.
body
# test that correct path is generated for the same polymorphic_path call in an engine
get
"/somone/blog/engine_polymorphic_path"
assert_equal
"/somone/blog/posts/44"
,
last_response
.
body
get
"/som
e
one/blog/engine_polymorphic_path"
assert_equal
"/som
e
one/blog/posts/44"
,
last_response
.
body
# and in an application
get
"/application_polymorphic_path"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录