Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
fd918fe5
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,发现更多精彩内容 >>
提交
fd918fe5
编写于
1月 05, 2012
作者:
A
Aaron Patterson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
AP tests should inherit from AS::TestCase
上级
5d09d395
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
23 addition
and
22 deletion
+23
-22
actionpack/test/abstract/translation_test.rb
actionpack/test/abstract/translation_test.rb
+2
-2
actionpack/test/controller/base_test.rb
actionpack/test/controller/base_test.rb
+1
-1
actionpack/test/controller/integration_test.rb
actionpack/test/controller/integration_test.rb
+2
-2
actionpack/test/controller/record_identifier_test.rb
actionpack/test/controller/record_identifier_test.rb
+1
-1
actionpack/test/controller/routing_test.rb
actionpack/test/controller/routing_test.rb
+2
-2
actionpack/test/controller/runner_test.rb
actionpack/test/controller/runner_test.rb
+1
-1
actionpack/test/controller/selector_test.rb
actionpack/test/controller/selector_test.rb
+1
-1
actionpack/test/dispatch/reloader_test.rb
actionpack/test/dispatch/reloader_test.rb
+1
-1
actionpack/test/template/compiled_templates_test.rb
actionpack/test/template/compiled_templates_test.rb
+1
-1
actionpack/test/template/date_helper_i18n_test.rb
actionpack/test/template/date_helper_i18n_test.rb
+2
-2
actionpack/test/template/erb_util_test.rb
actionpack/test/template/erb_util_test.rb
+1
-1
actionpack/test/template/html-scanner/cdata_node_test.rb
actionpack/test/template/html-scanner/cdata_node_test.rb
+1
-1
actionpack/test/template/html-scanner/document_test.rb
actionpack/test/template/html-scanner/document_test.rb
+1
-1
actionpack/test/template/html-scanner/node_test.rb
actionpack/test/template/html-scanner/node_test.rb
+1
-1
actionpack/test/template/html-scanner/tag_node_test.rb
actionpack/test/template/html-scanner/tag_node_test.rb
+1
-1
actionpack/test/template/html-scanner/text_node_test.rb
actionpack/test/template/html-scanner/text_node_test.rb
+1
-1
actionpack/test/template/html-scanner/tokenizer_test.rb
actionpack/test/template/html-scanner/tokenizer_test.rb
+1
-1
actionpack/test/ts_isolated.rb
actionpack/test/ts_isolated.rb
+2
-1
未找到文件。
actionpack/test/abstract/translation_test.rb
浏览文件 @
fd918fe5
...
...
@@ -3,7 +3,7 @@
# class TranslatingController < ActionController::Base
# end
class
TranslationControllerTest
<
Test
::
Uni
t
::
TestCase
class
TranslationControllerTest
<
ActiveSuppor
t
::
TestCase
def
setup
@controller
=
ActionController
::
Base
.
new
end
...
...
@@ -23,4 +23,4 @@ def test_action_controller_base_responds_to_localize
def
test_action_controller_base_responds_to_l
assert_respond_to
@controller
,
:l
end
end
\ No newline at end of file
end
actionpack/test/controller/base_test.rb
浏览文件 @
fd918fe5
...
...
@@ -106,7 +106,7 @@ def test_record_identifier
end
end
class
ControllerInstanceTests
<
Test
::
Uni
t
::
TestCase
class
ControllerInstanceTests
<
ActiveSuppor
t
::
TestCase
def
setup
@empty
=
EmptyController
.
new
@contained
=
Submodule
::
ContainedEmptyController
.
new
...
...
actionpack/test/controller/integration_test.rb
浏览文件 @
fd918fe5
...
...
@@ -2,7 +2,7 @@
require
'controller/fake_controllers'
require
'action_controller/vendor/html-scanner'
class
SessionTest
<
Test
::
Uni
t
::
TestCase
class
SessionTest
<
ActiveSuppor
t
::
TestCase
StubApp
=
lambda
{
|
env
|
[
200
,
{
"Content-Type"
=>
"text/html"
,
"Content-Length"
=>
"13"
},
[
"Hello, World!"
]]
}
...
...
@@ -165,7 +165,7 @@ def test_xml_http_request_override_accept
end
end
class
IntegrationTestTest
<
Test
::
Uni
t
::
TestCase
class
IntegrationTestTest
<
ActiveSuppor
t
::
TestCase
def
setup
@test
=
::
ActionDispatch
::
IntegrationTest
.
new
(
:app
)
@test
.
class
.
stubs
(
:fixture_table_names
).
returns
([])
...
...
actionpack/test/controller/record_identifier_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
require
'controller/fake_models'
class
RecordIdentifierTest
<
Test
::
Uni
t
::
TestCase
class
RecordIdentifierTest
<
ActiveSuppor
t
::
TestCase
include
ActionController
::
RecordIdentifier
def
setup
...
...
actionpack/test/controller/routing_test.rb
浏览文件 @
fd918fe5
...
...
@@ -12,7 +12,7 @@ def rescue_action(e) raise e end
ROUTING
=
ActionDispatch
::
Routing
# See RFC 3986, section 3.3 for allowed path characters.
class
UriReservedCharactersRoutingTest
<
Test
::
Uni
t
::
TestCase
class
UriReservedCharactersRoutingTest
<
ActiveSuppor
t
::
TestCase
include
RoutingTestHelpers
def
setup
...
...
@@ -72,7 +72,7 @@ def url_for(options)
end
end
class
LegacyRouteSetTests
<
Test
::
Uni
t
::
TestCase
class
LegacyRouteSetTests
<
ActiveSuppor
t
::
TestCase
include
RoutingTestHelpers
attr_reader
:rs
...
...
actionpack/test/controller/runner_test.rb
浏览文件 @
fd918fe5
...
...
@@ -2,7 +2,7 @@
require
'action_dispatch/testing/integration'
module
ActionDispatch
class
RunnerTest
<
Test
::
Uni
t
::
TestCase
class
RunnerTest
<
ActiveSuppor
t
::
TestCase
class
MyRunner
include
Integration
::
Runner
...
...
actionpack/test/controller/selector_test.rb
浏览文件 @
fd918fe5
...
...
@@ -7,7 +7,7 @@
require
'controller/fake_controllers'
require
'action_controller/vendor/html-scanner'
class
SelectorTest
<
Test
::
Uni
t
::
TestCase
class
SelectorTest
<
ActiveSuppor
t
::
TestCase
#
# Basic selector: element, id, class, attributes.
#
...
...
actionpack/test/dispatch/reloader_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
ReloaderTest
<
Test
::
Uni
t
::
TestCase
class
ReloaderTest
<
ActiveSuppor
t
::
TestCase
Reloader
=
ActionDispatch
::
Reloader
def
test_prepare_callbacks
...
...
actionpack/test/template/compiled_templates_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
require
'controller/fake_models'
class
CompiledTemplatesTest
<
Test
::
Uni
t
::
TestCase
class
CompiledTemplatesTest
<
ActiveSuppor
t
::
TestCase
def
setup
# Clean up any details key cached to expose failures
# that otherwise would appear just on isolated tests
...
...
actionpack/test/template/date_helper_i18n_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
DateHelperDistanceOfTimeInWordsI18nTests
<
Test
::
Uni
t
::
TestCase
class
DateHelperDistanceOfTimeInWordsI18nTests
<
ActiveSuppor
t
::
TestCase
include
ActionView
::
Helpers
::
DateHelper
attr_reader
:request
...
...
@@ -71,7 +71,7 @@ def test_distance_of_time_pluralizations
end
end
class
DateHelperSelectTagsI18nTests
<
Test
::
Uni
t
::
TestCase
class
DateHelperSelectTagsI18nTests
<
ActiveSuppor
t
::
TestCase
include
ActionView
::
Helpers
::
DateHelper
attr_reader
:request
...
...
actionpack/test/template/erb_util_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
require
'active_support/core_ext/object/inclusion'
class
ErbUtilTest
<
Test
::
Uni
t
::
TestCase
class
ErbUtilTest
<
ActiveSuppor
t
::
TestCase
include
ERB
::
Util
ERB
::
Util
::
HTML_ESCAPE
.
each
do
|
given
,
expected
|
...
...
actionpack/test/template/html-scanner/cdata_node_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
CDATANodeTest
<
Test
::
Uni
t
::
TestCase
class
CDATANodeTest
<
ActiveSuppor
t
::
TestCase
def
setup
@node
=
HTML
::
CDATA
.
new
(
nil
,
0
,
0
,
"<p>howdy</p>"
)
end
...
...
actionpack/test/template/html-scanner/document_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
DocumentTest
<
Test
::
Uni
t
::
TestCase
class
DocumentTest
<
ActiveSuppor
t
::
TestCase
def
test_handle_doctype
doc
=
nil
assert_nothing_raised
do
...
...
actionpack/test/template/html-scanner/node_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
NodeTest
<
Test
::
Uni
t
::
TestCase
class
NodeTest
<
ActiveSuppor
t
::
TestCase
class
MockNode
def
initialize
(
matched
,
value
)
...
...
actionpack/test/template/html-scanner/tag_node_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
TagNodeTest
<
Test
::
Uni
t
::
TestCase
class
TagNodeTest
<
ActiveSuppor
t
::
TestCase
def
test_open_without_attributes
node
=
tag
(
"<tag>"
)
assert_equal
"tag"
,
node
.
name
...
...
actionpack/test/template/html-scanner/text_node_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
TextNodeTest
<
Test
::
Uni
t
::
TestCase
class
TextNodeTest
<
ActiveSuppor
t
::
TestCase
def
setup
@node
=
HTML
::
Text
.
new
(
nil
,
0
,
0
,
"hello, howdy, aloha, annyeong"
)
end
...
...
actionpack/test/template/html-scanner/tokenizer_test.rb
浏览文件 @
fd918fe5
require
'abstract_unit'
class
TokenizerTest
<
Test
::
Uni
t
::
TestCase
class
TokenizerTest
<
ActiveSuppor
t
::
TestCase
def
test_blank
tokenize
""
...
...
actionpack/test/ts_isolated.rb
浏览文件 @
fd918fe5
...
...
@@ -3,8 +3,9 @@
require
'test/unit'
require
'rbconfig'
require
'active_support/core_ext/kernel/reporting'
require
'abstract_unit'
class
TestIsolated
<
Test
::
Uni
t
::
TestCase
class
TestIsolated
<
ActiveSuppor
t
::
TestCase
ruby
=
File
.
join
(
*
RbConfig
::
CONFIG
.
values_at
(
'bindir'
,
'RUBY_INSTALL_NAME'
))
Dir
[
"
#{
File
.
dirname
(
__FILE__
)
}
/{abstract,controller,dispatch,template}/**/*_test.rb"
].
each
do
|
file
|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录