Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
5e5bf31b
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,发现更多精彩内容 >>
提交
5e5bf31b
编写于
6月 09, 2012
作者:
P
Piotr Sarnacki
提交者:
Łukasz Strzałkowski
6月 20, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unneeded files
上级
eb23754e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
0 addition
and
88 deletion
+0
-88
actionpack/test/controller/caching_test.rb
actionpack/test/controller/caching_test.rb
+0
-1
actionpack/test/fixtures/db_definitions/sqlite.sql
actionpack/test/fixtures/db_definitions/sqlite.sql
+0
-49
actionview/test/lib/controller/fake_models.rb
actionview/test/lib/controller/fake_models.rb
+0
-34
actionview/test/template/compiled_templates_test.rb
actionview/test/template/compiled_templates_test.rb
+0
-1
actionview/test/template/streaming_render_test.rb
actionview/test/template/streaming_render_test.rb
+0
-1
actionview/test/template/test_case_test.rb
actionview/test/template/test_case_test.rb
+0
-1
actionview/test/template/url_helper_test.rb
actionview/test/template/url_helper_test.rb
+0
-1
未找到文件。
actionpack/test/controller/caching_test.rb
浏览文件 @
5e5bf31b
require
'fileutils'
require
'fileutils'
require
'abstract_unit'
require
'abstract_unit'
require
'active_record_unit'
CACHE_DIR
=
'test_cache'
CACHE_DIR
=
'test_cache'
# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed
# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed
...
...
actionpack/test/fixtures/db_definitions/sqlite.sql
已删除
100644 → 0
浏览文件 @
eb23754e
CREATE
TABLE
'companies'
(
'id'
INTEGER
PRIMARY
KEY
NOT
NULL
,
'name'
TEXT
DEFAULT
NULL
,
'rating'
INTEGER
DEFAULT
1
);
CREATE
TABLE
'replies'
(
'id'
INTEGER
PRIMARY
KEY
NOT
NULL
,
'content'
text
,
'created_at'
datetime
,
'updated_at'
datetime
,
'topic_id'
integer
,
'developer_id'
integer
);
CREATE
TABLE
'topics'
(
'id'
INTEGER
PRIMARY
KEY
NOT
NULL
,
'title'
varchar
(
255
),
'subtitle'
varchar
(
255
),
'content'
text
,
'created_at'
datetime
,
'updated_at'
datetime
);
CREATE
TABLE
'developers'
(
'id'
INTEGER
PRIMARY
KEY
NOT
NULL
,
'name'
TEXT
DEFAULT
NULL
,
'salary'
INTEGER
DEFAULT
70000
,
'created_at'
DATETIME
DEFAULT
NULL
,
'updated_at'
DATETIME
DEFAULT
NULL
);
CREATE
TABLE
'projects'
(
'id'
INTEGER
PRIMARY
KEY
NOT
NULL
,
'name'
TEXT
DEFAULT
NULL
);
CREATE
TABLE
'developers_projects'
(
'developer_id'
INTEGER
NOT
NULL
,
'project_id'
INTEGER
NOT
NULL
,
'joined_on'
DATE
DEFAULT
NULL
,
'access_level'
INTEGER
DEFAULT
1
);
CREATE
TABLE
'mascots'
(
'id'
INTEGER
PRIMARY
KEY
NOT
NULL
,
'company_id'
INTEGER
NOT
NULL
,
'name'
TEXT
DEFAULT
NULL
);
\ No newline at end of file
actionview/test/lib/controller/fake_models.rb
浏览文件 @
5e5bf31b
...
@@ -28,36 +28,9 @@ def persisted?
...
@@ -28,36 +28,9 @@ def persisted?
end
end
end
end
class
BadCustomer
<
Customer
end
class
GoodCustomer
<
Customer
class
GoodCustomer
<
Customer
end
end
class
ValidatedCustomer
<
Customer
def
errors
if
name
=~
/Sikachu/i
[]
else
[{
:name
=>
"is invalid"
}]
end
end
end
module
Quiz
class
Question
<
Struct
.
new
(
:name
,
:id
)
extend
ActiveModel
::
Naming
include
ActiveModel
::
Conversion
def
persisted?
id
.
present?
end
end
class
Store
<
Question
end
end
class
Post
<
Struct
.
new
(
:title
,
:author_name
,
:body
,
:secret
,
:persisted
,
:written_on
,
:cost
)
class
Post
<
Struct
.
new
(
:title
,
:author_name
,
:body
,
:secret
,
:persisted
,
:written_on
,
:cost
)
extend
ActiveModel
::
Naming
extend
ActiveModel
::
Naming
include
ActiveModel
::
Conversion
include
ActiveModel
::
Conversion
...
@@ -151,7 +124,6 @@ def name
...
@@ -151,7 +124,6 @@ def name
end
end
end
end
class
TagRelevance
class
TagRelevance
extend
ActiveModel
::
Naming
extend
ActiveModel
::
Naming
include
ActiveModel
::
Conversion
include
ActiveModel
::
Conversion
...
@@ -209,11 +181,5 @@ def each
...
@@ -209,11 +181,5 @@ def each
end
end
end
end
class
RenderJsonTestException
<
Exception
def
to_json
(
options
=
nil
)
return
{
:error
=>
self
.
class
.
name
,
:message
=>
self
.
to_s
}.
to_json
end
end
class
Car
<
Struct
.
new
(
:color
)
class
Car
<
Struct
.
new
(
:color
)
end
end
actionview/test/template/compiled_templates_test.rb
浏览文件 @
5e5bf31b
require
'abstract_unit'
require
'abstract_unit'
require
'controller/fake_models'
class
CompiledTemplatesTest
<
ActiveSupport
::
TestCase
class
CompiledTemplatesTest
<
ActiveSupport
::
TestCase
def
setup
def
setup
...
...
actionview/test/template/streaming_render_test.rb
浏览文件 @
5e5bf31b
# encoding: utf-8
# encoding: utf-8
require
'abstract_unit'
require
'abstract_unit'
require
'controller/fake_models'
class
TestController
<
ActionController
::
Base
class
TestController
<
ActionController
::
Base
end
end
...
...
actionview/test/template/test_case_test.rb
浏览文件 @
5e5bf31b
require
'abstract_unit'
require
'abstract_unit'
require
'controller/fake_controllers'
module
ActionView
module
ActionView
...
...
actionview/test/template/url_helper_test.rb
浏览文件 @
5e5bf31b
# encoding: utf-8
# encoding: utf-8
require
'abstract_unit'
require
'abstract_unit'
require
'controller/fake_controllers'
class
UrlHelperTest
<
ActiveSupport
::
TestCase
class
UrlHelperTest
<
ActiveSupport
::
TestCase
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录