minitest-rails 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -2
- data/CHANGELOG.rdoc +11 -0
- data/Manifest.txt +11 -5
- data/Rakefile +3 -1
- data/gemfiles/3.0.gemfile +0 -1
- data/gemfiles/3.0.gemfile.lock +31 -32
- data/gemfiles/3.1.gemfile +0 -1
- data/gemfiles/3.1.gemfile.lock +34 -35
- data/gemfiles/3.2.gemfile +0 -1
- data/gemfiles/3.2.gemfile.lock +36 -37
- data/lib/autotest/minitest_rails.rb +2 -1
- data/lib/generators/mini_test/scaffold/scaffold_generator.rb +15 -0
- data/lib/generators/mini_test/scaffold/templates/controller_spec.rb +6 -6
- data/lib/generators/mini_test/scaffold/templates/controller_test.rb +6 -6
- data/lib/minitest-rails.rb +1 -1
- data/lib/minitest/rails/action_controller.rb +3 -36
- data/lib/minitest/rails/action_dispatch.rb +6 -1
- data/lib/minitest/rails/action_mailer.rb +8 -1
- data/lib/minitest/rails/action_view.rb +8 -5
- data/lib/minitest/rails/active_support.rb +2 -0
- data/lib/minitest/rails/constant_lookup.rb +57 -0
- data/lib/minitest/rails/version.rb +5 -0
- data/minitest-rails.gemspec +11 -11
- data/tasks/gemfiles.rake +23 -0
- data/tasks/test.rake +20 -0
- data/test/rails/{test_action_dispatch_spec_type.rb → action_dispatch/test_spec_type.rb} +0 -0
- data/test/rails/action_mailer/test_mailers.rb +113 -0
- data/test/rails/{test_action_mailer_spec_type.rb → action_mailer/test_spec_type.rb} +0 -0
- data/test/rails/action_view/test_helpers.rb +76 -0
- data/test/rails/{test_action_view_spec_type.rb → action_view/test_spec_type.rb} +0 -0
- data/test/rails/{test_active_support_spec_type.rb → active_support/test_spec_type.rb} +0 -0
- data/test/rails/test_constant_lookup.rb +61 -0
- metadata +25 -17
- data/test/rails/action_controller/test_controller_lookup.rb +0 -49
data/.travis.yml
CHANGED
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 0.3 / 2012-11-02
|
2
|
+
|
3
|
+
* Mailer lookup for spec-style tests
|
4
|
+
* Helper lookup for spec-style tests
|
5
|
+
* Scaffold controller test green out of the box
|
6
|
+
* Bump minitest dependency version to 4.0
|
7
|
+
* Fixed builds in travis
|
8
|
+
* Added convenience rake tasks for dealing with gemfiles
|
9
|
+
|
10
|
+
https://github.com/blowmage/minitest-rails/compare/v0.2...v0.3
|
11
|
+
|
1
12
|
=== 0.2 / 2012-09-19
|
2
13
|
|
3
14
|
* Add support for Autotest (closes #64)
|
data/Manifest.txt
CHANGED
@@ -46,22 +46,28 @@ lib/minitest/rails/action_dispatch.rb
|
|
46
46
|
lib/minitest/rails/action_mailer.rb
|
47
47
|
lib/minitest/rails/action_view.rb
|
48
48
|
lib/minitest/rails/active_support.rb
|
49
|
+
lib/minitest/rails/constant_lookup.rb
|
49
50
|
lib/minitest/rails/declarative.rb
|
50
51
|
lib/minitest/rails/mochaing.rb
|
51
52
|
lib/minitest/rails/tasks/minitest.rake
|
52
53
|
lib/minitest/rails/tasks/sub_test_task.rb
|
54
|
+
lib/minitest/rails/version.rb
|
53
55
|
minitest-rails.gemspec
|
56
|
+
tasks/gemfiles.rake
|
57
|
+
tasks/test.rake
|
54
58
|
test/generators/test_controller_generator.rb
|
55
59
|
test/generators/test_helper_generator.rb
|
56
60
|
test/generators/test_install_generator.rb
|
57
61
|
test/generators/test_mailer_generator.rb
|
58
62
|
test/generators/test_model_generator.rb
|
59
63
|
test/generators/test_scaffold_generator.rb
|
60
|
-
test/rails/action_controller/test_controller_lookup.rb
|
61
64
|
test/rails/action_controller/test_controllers.rb
|
62
65
|
test/rails/action_controller/test_spec_type.rb
|
63
|
-
test/rails/
|
64
|
-
test/rails/
|
65
|
-
test/rails/
|
66
|
-
test/rails/
|
66
|
+
test/rails/action_dispatch/test_spec_type.rb
|
67
|
+
test/rails/action_mailer/test_mailers.rb
|
68
|
+
test/rails/action_mailer/test_spec_type.rb
|
69
|
+
test/rails/action_view/test_helpers.rb
|
70
|
+
test/rails/action_view/test_spec_type.rb
|
71
|
+
test/rails/active_support/test_spec_type.rb
|
72
|
+
test/rails/test_constant_lookup.rb
|
67
73
|
test/test_sanity.rb
|
data/Rakefile
CHANGED
@@ -19,9 +19,11 @@ Hoe.spec 'minitest-rails' do
|
|
19
19
|
self.readme_file = "README.rdoc"
|
20
20
|
self.testlib = :minitest
|
21
21
|
|
22
|
-
dependency 'minitest', '~>
|
22
|
+
dependency 'minitest', '~> 4.0'
|
23
23
|
dependency 'rails', '~> 3.0'
|
24
24
|
dependency 'fakefs', '~> 0.4', :dev
|
25
25
|
end
|
26
26
|
|
27
|
+
Dir["tasks/**/*.rake"].each { |t| load t }
|
28
|
+
|
27
29
|
# vim: syntax=ruby
|
data/gemfiles/3.0.gemfile
CHANGED
data/gemfiles/3.0.gemfile.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/blowmage/codez/minitest-rails
|
3
3
|
specs:
|
4
|
-
minitest-rails (0.
|
5
|
-
minitest (~>
|
4
|
+
minitest-rails (0.3.20121102170159)
|
5
|
+
minitest (~> 4.0)
|
6
6
|
rails (~> 3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
11
|
abstract (1.0.0)
|
12
|
-
actionmailer (3.0.
|
13
|
-
actionpack (= 3.0.
|
12
|
+
actionmailer (3.0.17)
|
13
|
+
actionpack (= 3.0.17)
|
14
14
|
mail (~> 2.2.19)
|
15
|
-
actionpack (3.0.
|
16
|
-
activemodel (= 3.0.
|
17
|
-
activesupport (= 3.0.
|
15
|
+
actionpack (3.0.17)
|
16
|
+
activemodel (= 3.0.17)
|
17
|
+
activesupport (= 3.0.17)
|
18
18
|
builder (~> 2.1.2)
|
19
19
|
erubis (~> 2.6.6)
|
20
20
|
i18n (~> 0.5.0)
|
@@ -22,52 +22,52 @@ GEM
|
|
22
22
|
rack-mount (~> 0.6.14)
|
23
23
|
rack-test (~> 0.5.7)
|
24
24
|
tzinfo (~> 0.3.23)
|
25
|
-
activemodel (3.0.
|
26
|
-
activesupport (= 3.0.
|
25
|
+
activemodel (3.0.17)
|
26
|
+
activesupport (= 3.0.17)
|
27
27
|
builder (~> 2.1.2)
|
28
28
|
i18n (~> 0.5.0)
|
29
|
-
activerecord (3.0.
|
30
|
-
activemodel (= 3.0.
|
31
|
-
activesupport (= 3.0.
|
29
|
+
activerecord (3.0.17)
|
30
|
+
activemodel (= 3.0.17)
|
31
|
+
activesupport (= 3.0.17)
|
32
32
|
arel (~> 2.0.10)
|
33
33
|
tzinfo (~> 0.3.23)
|
34
|
-
activeresource (3.0.
|
35
|
-
activemodel (= 3.0.
|
36
|
-
activesupport (= 3.0.
|
37
|
-
activesupport (3.0.
|
34
|
+
activeresource (3.0.17)
|
35
|
+
activemodel (= 3.0.17)
|
36
|
+
activesupport (= 3.0.17)
|
37
|
+
activesupport (3.0.17)
|
38
38
|
arel (2.0.10)
|
39
39
|
builder (2.1.2)
|
40
40
|
erubis (2.6.6)
|
41
41
|
abstract (>= 1.0.0)
|
42
42
|
fakefs (0.4.0)
|
43
|
-
hoe (3.0
|
43
|
+
hoe (3.1.0)
|
44
44
|
rake (~> 0.8)
|
45
45
|
i18n (0.5.0)
|
46
|
-
json (1.7.
|
46
|
+
json (1.7.5)
|
47
47
|
mail (2.2.19)
|
48
48
|
activesupport (>= 2.3.6)
|
49
49
|
i18n (>= 0.4.0)
|
50
50
|
mime-types (~> 1.16)
|
51
51
|
treetop (~> 1.4.8)
|
52
52
|
mime-types (1.19)
|
53
|
-
minitest (
|
53
|
+
minitest (4.1.0)
|
54
54
|
polyglot (0.3.3)
|
55
55
|
rack (1.2.5)
|
56
56
|
rack-mount (0.6.14)
|
57
57
|
rack (>= 1.0.0)
|
58
58
|
rack-test (0.5.7)
|
59
59
|
rack (>= 1.0)
|
60
|
-
rails (3.0.
|
61
|
-
actionmailer (= 3.0.
|
62
|
-
actionpack (= 3.0.
|
63
|
-
activerecord (= 3.0.
|
64
|
-
activeresource (= 3.0.
|
65
|
-
activesupport (= 3.0.
|
60
|
+
rails (3.0.17)
|
61
|
+
actionmailer (= 3.0.17)
|
62
|
+
actionpack (= 3.0.17)
|
63
|
+
activerecord (= 3.0.17)
|
64
|
+
activeresource (= 3.0.17)
|
65
|
+
activesupport (= 3.0.17)
|
66
66
|
bundler (~> 1.0)
|
67
|
-
railties (= 3.0.
|
68
|
-
railties (3.0.
|
69
|
-
actionpack (= 3.0.
|
70
|
-
activesupport (= 3.0.
|
67
|
+
railties (= 3.0.17)
|
68
|
+
railties (3.0.17)
|
69
|
+
actionpack (= 3.0.17)
|
70
|
+
activesupport (= 3.0.17)
|
71
71
|
rake (>= 0.8.7)
|
72
72
|
rdoc (~> 3.4)
|
73
73
|
thor (~> 0.14.4)
|
@@ -75,10 +75,10 @@ GEM
|
|
75
75
|
rdoc (3.12)
|
76
76
|
json (~> 1.4)
|
77
77
|
thor (0.14.6)
|
78
|
-
treetop (1.4.
|
78
|
+
treetop (1.4.12)
|
79
79
|
polyglot
|
80
80
|
polyglot (>= 0.3.1)
|
81
|
-
tzinfo (0.3.
|
81
|
+
tzinfo (0.3.34)
|
82
82
|
|
83
83
|
PLATFORMS
|
84
84
|
ruby
|
@@ -86,7 +86,6 @@ PLATFORMS
|
|
86
86
|
DEPENDENCIES
|
87
87
|
fakefs (~> 0.4)
|
88
88
|
hoe (~> 3.0)
|
89
|
-
minitest (~> 3.0)
|
90
89
|
minitest-rails!
|
91
90
|
rails (~> 3.0.15)
|
92
91
|
rdoc (~> 3.10)
|
data/gemfiles/3.1.gemfile
CHANGED
data/gemfiles/3.1.gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/blowmage/codez/minitest-rails
|
3
3
|
specs:
|
4
|
-
minitest-rails (0.
|
5
|
-
minitest (~>
|
4
|
+
minitest-rails (0.3.20121102170159)
|
5
|
+
minitest (~> 4.0)
|
6
6
|
rails (~> 3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (3.1.
|
12
|
-
actionpack (= 3.1.
|
11
|
+
actionmailer (3.1.8)
|
12
|
+
actionpack (= 3.1.8)
|
13
13
|
mail (~> 2.3.3)
|
14
|
-
actionpack (3.1.
|
15
|
-
activemodel (= 3.1.
|
16
|
-
activesupport (= 3.1.
|
14
|
+
actionpack (3.1.8)
|
15
|
+
activemodel (= 3.1.8)
|
16
|
+
activesupport (= 3.1.8)
|
17
17
|
builder (~> 3.0.0)
|
18
18
|
erubis (~> 2.7.0)
|
19
19
|
i18n (~> 0.6)
|
@@ -22,35 +22,35 @@ GEM
|
|
22
22
|
rack-mount (~> 0.8.2)
|
23
23
|
rack-test (~> 0.6.1)
|
24
24
|
sprockets (~> 2.0.4)
|
25
|
-
activemodel (3.1.
|
26
|
-
activesupport (= 3.1.
|
25
|
+
activemodel (3.1.8)
|
26
|
+
activesupport (= 3.1.8)
|
27
27
|
builder (~> 3.0.0)
|
28
28
|
i18n (~> 0.6)
|
29
|
-
activerecord (3.1.
|
30
|
-
activemodel (= 3.1.
|
31
|
-
activesupport (= 3.1.
|
29
|
+
activerecord (3.1.8)
|
30
|
+
activemodel (= 3.1.8)
|
31
|
+
activesupport (= 3.1.8)
|
32
32
|
arel (~> 2.2.3)
|
33
33
|
tzinfo (~> 0.3.29)
|
34
|
-
activeresource (3.1.
|
35
|
-
activemodel (= 3.1.
|
36
|
-
activesupport (= 3.1.
|
37
|
-
activesupport (3.1.
|
34
|
+
activeresource (3.1.8)
|
35
|
+
activemodel (= 3.1.8)
|
36
|
+
activesupport (= 3.1.8)
|
37
|
+
activesupport (3.1.8)
|
38
38
|
multi_json (>= 1.0, < 1.3)
|
39
39
|
arel (2.2.3)
|
40
|
-
builder (3.0.
|
40
|
+
builder (3.0.4)
|
41
41
|
erubis (2.7.0)
|
42
42
|
fakefs (0.4.0)
|
43
43
|
hike (1.2.1)
|
44
|
-
hoe (3.0
|
44
|
+
hoe (3.1.0)
|
45
45
|
rake (~> 0.8)
|
46
|
-
i18n (0.6.
|
47
|
-
json (1.7.
|
46
|
+
i18n (0.6.1)
|
47
|
+
json (1.7.5)
|
48
48
|
mail (2.3.3)
|
49
49
|
i18n (>= 0.4.0)
|
50
50
|
mime-types (~> 1.16)
|
51
51
|
treetop (~> 1.4.8)
|
52
52
|
mime-types (1.19)
|
53
|
-
minitest (
|
53
|
+
minitest (4.1.0)
|
54
54
|
multi_json (1.2.0)
|
55
55
|
polyglot (0.3.3)
|
56
56
|
rack (1.3.6)
|
@@ -60,19 +60,19 @@ GEM
|
|
60
60
|
rack (>= 1.0.0)
|
61
61
|
rack-ssl (1.3.2)
|
62
62
|
rack
|
63
|
-
rack-test (0.6.
|
63
|
+
rack-test (0.6.2)
|
64
64
|
rack (>= 1.0)
|
65
|
-
rails (3.1.
|
66
|
-
actionmailer (= 3.1.
|
67
|
-
actionpack (= 3.1.
|
68
|
-
activerecord (= 3.1.
|
69
|
-
activeresource (= 3.1.
|
70
|
-
activesupport (= 3.1.
|
65
|
+
rails (3.1.8)
|
66
|
+
actionmailer (= 3.1.8)
|
67
|
+
actionpack (= 3.1.8)
|
68
|
+
activerecord (= 3.1.8)
|
69
|
+
activeresource (= 3.1.8)
|
70
|
+
activesupport (= 3.1.8)
|
71
71
|
bundler (~> 1.0)
|
72
|
-
railties (= 3.1.
|
73
|
-
railties (3.1.
|
74
|
-
actionpack (= 3.1.
|
75
|
-
activesupport (= 3.1.
|
72
|
+
railties (= 3.1.8)
|
73
|
+
railties (3.1.8)
|
74
|
+
actionpack (= 3.1.8)
|
75
|
+
activesupport (= 3.1.8)
|
76
76
|
rack-ssl (~> 1.3.2)
|
77
77
|
rake (>= 0.8.7)
|
78
78
|
rdoc (~> 3.4)
|
@@ -86,10 +86,10 @@ GEM
|
|
86
86
|
tilt (~> 1.1, != 1.3.0)
|
87
87
|
thor (0.14.6)
|
88
88
|
tilt (1.3.3)
|
89
|
-
treetop (1.4.
|
89
|
+
treetop (1.4.12)
|
90
90
|
polyglot
|
91
91
|
polyglot (>= 0.3.1)
|
92
|
-
tzinfo (0.3.
|
92
|
+
tzinfo (0.3.34)
|
93
93
|
|
94
94
|
PLATFORMS
|
95
95
|
ruby
|
@@ -97,7 +97,6 @@ PLATFORMS
|
|
97
97
|
DEPENDENCIES
|
98
98
|
fakefs (~> 0.4)
|
99
99
|
hoe (~> 3.0)
|
100
|
-
minitest (~> 3.0)
|
101
100
|
minitest-rails!
|
102
101
|
rails (~> 3.1.6)
|
103
102
|
rdoc (~> 3.10)
|
data/gemfiles/3.2.gemfile
CHANGED
data/gemfiles/3.2.gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/blowmage/codez/minitest-rails
|
3
3
|
specs:
|
4
|
-
minitest-rails (0.
|
5
|
-
minitest (~>
|
4
|
+
minitest-rails (0.3.20121102170159)
|
5
|
+
minitest (~> 4.0)
|
6
6
|
rails (~> 3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (3.2.
|
12
|
-
actionpack (= 3.2.
|
11
|
+
actionmailer (3.2.8)
|
12
|
+
actionpack (= 3.2.8)
|
13
13
|
mail (~> 2.4.4)
|
14
|
-
actionpack (3.2.
|
15
|
-
activemodel (= 3.2.
|
16
|
-
activesupport (= 3.2.
|
14
|
+
actionpack (3.2.8)
|
15
|
+
activemodel (= 3.2.8)
|
16
|
+
activesupport (= 3.2.8)
|
17
17
|
builder (~> 3.0.0)
|
18
18
|
erubis (~> 2.7.0)
|
19
19
|
journey (~> 1.0.4)
|
@@ -21,56 +21,56 @@ GEM
|
|
21
21
|
rack-cache (~> 1.2)
|
22
22
|
rack-test (~> 0.6.1)
|
23
23
|
sprockets (~> 2.1.3)
|
24
|
-
activemodel (3.2.
|
25
|
-
activesupport (= 3.2.
|
24
|
+
activemodel (3.2.8)
|
25
|
+
activesupport (= 3.2.8)
|
26
26
|
builder (~> 3.0.0)
|
27
|
-
activerecord (3.2.
|
28
|
-
activemodel (= 3.2.
|
29
|
-
activesupport (= 3.2.
|
27
|
+
activerecord (3.2.8)
|
28
|
+
activemodel (= 3.2.8)
|
29
|
+
activesupport (= 3.2.8)
|
30
30
|
arel (~> 3.0.2)
|
31
31
|
tzinfo (~> 0.3.29)
|
32
|
-
activeresource (3.2.
|
33
|
-
activemodel (= 3.2.
|
34
|
-
activesupport (= 3.2.
|
35
|
-
activesupport (3.2.
|
32
|
+
activeresource (3.2.8)
|
33
|
+
activemodel (= 3.2.8)
|
34
|
+
activesupport (= 3.2.8)
|
35
|
+
activesupport (3.2.8)
|
36
36
|
i18n (~> 0.6)
|
37
37
|
multi_json (~> 1.0)
|
38
38
|
arel (3.0.2)
|
39
|
-
builder (3.0.
|
39
|
+
builder (3.0.4)
|
40
40
|
erubis (2.7.0)
|
41
41
|
fakefs (0.4.0)
|
42
42
|
hike (1.2.1)
|
43
|
-
hoe (3.0
|
43
|
+
hoe (3.1.0)
|
44
44
|
rake (~> 0.8)
|
45
|
-
i18n (0.6.
|
45
|
+
i18n (0.6.1)
|
46
46
|
journey (1.0.4)
|
47
|
-
json (1.7.
|
47
|
+
json (1.7.5)
|
48
48
|
mail (2.4.4)
|
49
49
|
i18n (>= 0.4.0)
|
50
50
|
mime-types (~> 1.16)
|
51
51
|
treetop (~> 1.4.8)
|
52
52
|
mime-types (1.19)
|
53
|
-
minitest (
|
54
|
-
multi_json (1.3.
|
53
|
+
minitest (4.1.0)
|
54
|
+
multi_json (1.3.7)
|
55
55
|
polyglot (0.3.3)
|
56
56
|
rack (1.4.1)
|
57
57
|
rack-cache (1.2)
|
58
58
|
rack (>= 0.4)
|
59
59
|
rack-ssl (1.3.2)
|
60
60
|
rack
|
61
|
-
rack-test (0.6.
|
61
|
+
rack-test (0.6.2)
|
62
62
|
rack (>= 1.0)
|
63
|
-
rails (3.2.
|
64
|
-
actionmailer (= 3.2.
|
65
|
-
actionpack (= 3.2.
|
66
|
-
activerecord (= 3.2.
|
67
|
-
activeresource (= 3.2.
|
68
|
-
activesupport (= 3.2.
|
63
|
+
rails (3.2.8)
|
64
|
+
actionmailer (= 3.2.8)
|
65
|
+
actionpack (= 3.2.8)
|
66
|
+
activerecord (= 3.2.8)
|
67
|
+
activeresource (= 3.2.8)
|
68
|
+
activesupport (= 3.2.8)
|
69
69
|
bundler (~> 1.0)
|
70
|
-
railties (= 3.2.
|
71
|
-
railties (3.2.
|
72
|
-
actionpack (= 3.2.
|
73
|
-
activesupport (= 3.2.
|
70
|
+
railties (= 3.2.8)
|
71
|
+
railties (3.2.8)
|
72
|
+
actionpack (= 3.2.8)
|
73
|
+
activesupport (= 3.2.8)
|
74
74
|
rack-ssl (~> 1.3.2)
|
75
75
|
rake (>= 0.8.7)
|
76
76
|
rdoc (~> 3.4)
|
@@ -82,12 +82,12 @@ GEM
|
|
82
82
|
hike (~> 1.2)
|
83
83
|
rack (~> 1.0)
|
84
84
|
tilt (~> 1.1, != 1.3.0)
|
85
|
-
thor (0.
|
85
|
+
thor (0.16.0)
|
86
86
|
tilt (1.3.3)
|
87
|
-
treetop (1.4.
|
87
|
+
treetop (1.4.12)
|
88
88
|
polyglot
|
89
89
|
polyglot (>= 0.3.1)
|
90
|
-
tzinfo (0.3.
|
90
|
+
tzinfo (0.3.34)
|
91
91
|
|
92
92
|
PLATFORMS
|
93
93
|
ruby
|
@@ -95,7 +95,6 @@ PLATFORMS
|
|
95
95
|
DEPENDENCIES
|
96
96
|
fakefs (~> 0.4)
|
97
97
|
hoe (~> 3.0)
|
98
|
-
minitest (~> 3.0)
|
99
98
|
minitest-rails!
|
100
99
|
rails (~> 3.2.6)
|
101
100
|
rdoc (~> 3.10)
|