Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
050f100d
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,发现更多精彩内容 >>
提交
050f100d
编写于
1月 13, 2014
作者:
Y
Yves Senn
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #13693 from gaurish/typo
[JRuby] Fix incorrect RUBY_ENGINE value
上级
e95031f5
35e56f6f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
39 addition
and
6 deletion
+39
-6
actionmailer/test/abstract_unit.rb
actionmailer/test/abstract_unit.rb
+9
-0
actionpack/test/abstract_unit.rb
actionpack/test/abstract_unit.rb
+9
-0
actionpack/test/dispatch/static_test.rb
actionpack/test/dispatch/static_test.rb
+1
-3
actionview/test/abstract_unit.rb
actionview/test/abstract_unit.rb
+8
-0
activesupport/test/abstract_unit.rb
activesupport/test/abstract_unit.rb
+1
-1
railties/test/abstract_unit.rb
railties/test/abstract_unit.rb
+9
-0
railties/test/generators/app_generator_test.rb
railties/test/generators/app_generator_test.rb
+2
-2
未找到文件。
actionmailer/test/abstract_unit.rb
浏览文件 @
050f100d
...
...
@@ -62,3 +62,12 @@ def set_delivery_method(method)
def
restore_delivery_method
ActionMailer
::
Base
.
delivery_method
=
@old_delivery_method
end
# Skips the current run on Rubinius using Minitest::Assertions#skip
def
rubinius_skip
(
message
=
''
)
skip
message
if
RUBY_ENGINE
==
'rbx'
end
# Skips the current run on JRuby using Minitest::Assertions#skip
def
jruby_skip
(
message
=
''
)
skip
message
if
defined?
(
JRUBY_VERSION
)
end
actionpack/test/abstract_unit.rb
浏览文件 @
050f100d
...
...
@@ -351,3 +351,12 @@ class ProductsController < ResourcesController; end
class
ImagesController
<
ResourcesController
;
end
end
end
# Skips the current run on Rubinius using Minitest::Assertions#skip
def
rubinius_skip
(
message
=
''
)
skip
message
if
RUBY_ENGINE
==
'rbx'
end
# Skips the current run on JRuby using Minitest::Assertions#skip
def
jruby_skip
(
message
=
''
)
skip
message
if
defined?
(
JRUBY_VERSION
)
end
actionpack/test/dispatch/static_test.rb
浏览文件 @
050f100d
...
...
@@ -37,10 +37,8 @@ def test_serves_static_index_file_in_directory
end
def
test_served_static_file_with_non_english_filename
if
RUBY_ENGINE
==
'jruby '
skip
"Stop skipping if following bug gets fixed: "
\
jruby_skip
"Stop skipping if following bug gets fixed: "
\
"http://jira.codehaus.org/browse/JRUBY-7192"
end
assert_html
"means hello in Japanese
\n
"
,
get
(
"/foo/
#{
Rack
::
Utils
.
escape
(
"こんにちは.html"
)
}
"
)
end
...
...
actionview/test/abstract_unit.rb
浏览文件 @
050f100d
...
...
@@ -331,3 +331,11 @@ def stderr_logger
end
end
# Skips the current run on Rubinius using Minitest::Assertions#skip
def
rubinius_skip
(
message
=
''
)
skip
message
if
RUBY_ENGINE
==
'rbx'
end
# Skips the current run on JRuby using Minitest::Assertions#skip
def
jruby_skip
(
message
=
''
)
skip
message
if
defined?
(
JRUBY_VERSION
)
end
activesupport/test/abstract_unit.rb
浏览文件 @
050f100d
...
...
@@ -34,5 +34,5 @@ def rubinius_skip(message = '')
# Skips the current run on JRuby using Minitest::Assertions#skip
def
jruby_skip
(
message
=
''
)
skip
message
if
RUBY_ENGINE
==
'jruby'
skip
message
if
defined?
(
JRUBY_VERSION
)
end
railties/test/abstract_unit.rb
浏览文件 @
050f100d
...
...
@@ -17,3 +17,12 @@ class Application < Rails::Application
secrets
.
secret_key_base
=
'b3c631c314c0bbca50c1b2843150fe33'
end
end
# Skips the current run on Rubinius using Minitest::Assertions#skip
def
rubinius_skip
(
message
=
''
)
skip
message
if
RUBY_ENGINE
==
'rbx'
end
# Skips the current run on JRuby using Minitest::Assertions#skip
def
jruby_skip
(
message
=
''
)
skip
message
if
defined?
(
JRUBY_VERSION
)
end
railties/test/generators/app_generator_test.rb
浏览文件 @
050f100d
...
...
@@ -458,14 +458,14 @@ def test_spring
end
def
test_spring_binstubs
skip
"spring doesn't run on JRuby"
if
defined?
(
JRUBY_VERSION
)
jruby_skip
"spring doesn't run on JRuby"
generator
.
stubs
(
:bundle_command
).
with
(
'install'
)
generator
.
expects
(
:bundle_command
).
with
(
'exec spring binstub --all'
).
once
quietly
{
generator
.
invoke_all
}
end
def
test_spring_no_fork
skip
"spring doesn't run on JRuby"
if
defined?
(
JRUBY_VERSION
)
jruby_skip
"spring doesn't run on JRuby"
Process
.
stubs
(
:respond_to?
).
with
(
:fork
).
returns
(
false
)
run_generator
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录