minitest-rails 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/.travis.yml +0 -2
  2. data/CHANGELOG.rdoc +11 -0
  3. data/Manifest.txt +11 -5
  4. data/Rakefile +3 -1
  5. data/gemfiles/3.0.gemfile +0 -1
  6. data/gemfiles/3.0.gemfile.lock +31 -32
  7. data/gemfiles/3.1.gemfile +0 -1
  8. data/gemfiles/3.1.gemfile.lock +34 -35
  9. data/gemfiles/3.2.gemfile +0 -1
  10. data/gemfiles/3.2.gemfile.lock +36 -37
  11. data/lib/autotest/minitest_rails.rb +2 -1
  12. data/lib/generators/mini_test/scaffold/scaffold_generator.rb +15 -0
  13. data/lib/generators/mini_test/scaffold/templates/controller_spec.rb +6 -6
  14. data/lib/generators/mini_test/scaffold/templates/controller_test.rb +6 -6
  15. data/lib/minitest-rails.rb +1 -1
  16. data/lib/minitest/rails/action_controller.rb +3 -36
  17. data/lib/minitest/rails/action_dispatch.rb +6 -1
  18. data/lib/minitest/rails/action_mailer.rb +8 -1
  19. data/lib/minitest/rails/action_view.rb +8 -5
  20. data/lib/minitest/rails/active_support.rb +2 -0
  21. data/lib/minitest/rails/constant_lookup.rb +57 -0
  22. data/lib/minitest/rails/version.rb +5 -0
  23. data/minitest-rails.gemspec +11 -11
  24. data/tasks/gemfiles.rake +23 -0
  25. data/tasks/test.rake +20 -0
  26. data/test/rails/{test_action_dispatch_spec_type.rb → action_dispatch/test_spec_type.rb} +0 -0
  27. data/test/rails/action_mailer/test_mailers.rb +113 -0
  28. data/test/rails/{test_action_mailer_spec_type.rb → action_mailer/test_spec_type.rb} +0 -0
  29. data/test/rails/action_view/test_helpers.rb +76 -0
  30. data/test/rails/{test_action_view_spec_type.rb → action_view/test_spec_type.rb} +0 -0
  31. data/test/rails/{test_active_support_spec_type.rb → active_support/test_spec_type.rb} +0 -0
  32. data/test/rails/test_constant_lookup.rb +61 -0
  33. metadata +25 -17
  34. data/test/rails/action_controller/test_controller_lookup.rb +0 -49
data/.travis.yml CHANGED
@@ -10,8 +10,6 @@ notifications:
10
10
  rvm:
11
11
  - 1.9.3
12
12
  - ruby-head
13
- - 1.8.7
14
- - ree
15
13
  gemfile:
16
14
  - gemfiles/3.0.gemfile
17
15
  - gemfiles/3.1.gemfile
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/test_action_dispatch_spec_type.rb
64
- test/rails/test_action_mailer_spec_type.rb
65
- test/rails/test_action_view_spec_type.rb
66
- test/rails/test_active_support_spec_type.rb
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', '~> 3.4'
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
@@ -1,7 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 3.0.15"
4
- gem "minitest", "~> 3.0"
5
4
  gem "rdoc", "~> 3.10"
6
5
  gem "hoe", "~> 3.0"
7
6
  gem "fakefs", "~> 0.4"
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.1.2.20120728124510)
5
- minitest (~> 3.0)
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.16)
13
- actionpack (= 3.0.16)
12
+ actionmailer (3.0.17)
13
+ actionpack (= 3.0.17)
14
14
  mail (~> 2.2.19)
15
- actionpack (3.0.16)
16
- activemodel (= 3.0.16)
17
- activesupport (= 3.0.16)
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.16)
26
- activesupport (= 3.0.16)
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.16)
30
- activemodel (= 3.0.16)
31
- activesupport (= 3.0.16)
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.16)
35
- activemodel (= 3.0.16)
36
- activesupport (= 3.0.16)
37
- activesupport (3.0.16)
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.6)
43
+ hoe (3.1.0)
44
44
  rake (~> 0.8)
45
45
  i18n (0.5.0)
46
- json (1.7.4)
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 (3.3.0)
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.16)
61
- actionmailer (= 3.0.16)
62
- actionpack (= 3.0.16)
63
- activerecord (= 3.0.16)
64
- activeresource (= 3.0.16)
65
- activesupport (= 3.0.16)
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.16)
68
- railties (3.0.16)
69
- actionpack (= 3.0.16)
70
- activesupport (= 3.0.16)
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.10)
78
+ treetop (1.4.12)
79
79
  polyglot
80
80
  polyglot (>= 0.3.1)
81
- tzinfo (0.3.33)
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
@@ -1,7 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 3.1.6"
4
- gem "minitest", "~> 3.0"
5
4
  gem "rdoc", "~> 3.10"
6
5
  gem "hoe", "~> 3.0"
7
6
  gem "fakefs", "~> 0.4"
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.1.2.20120728124510)
5
- minitest (~> 3.0)
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.7)
12
- actionpack (= 3.1.7)
11
+ actionmailer (3.1.8)
12
+ actionpack (= 3.1.8)
13
13
  mail (~> 2.3.3)
14
- actionpack (3.1.7)
15
- activemodel (= 3.1.7)
16
- activesupport (= 3.1.7)
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.7)
26
- activesupport (= 3.1.7)
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.7)
30
- activemodel (= 3.1.7)
31
- activesupport (= 3.1.7)
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.7)
35
- activemodel (= 3.1.7)
36
- activesupport (= 3.1.7)
37
- activesupport (3.1.7)
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.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.6)
44
+ hoe (3.1.0)
45
45
  rake (~> 0.8)
46
- i18n (0.6.0)
47
- json (1.7.4)
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 (3.3.0)
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.1)
63
+ rack-test (0.6.2)
64
64
  rack (>= 1.0)
65
- rails (3.1.7)
66
- actionmailer (= 3.1.7)
67
- actionpack (= 3.1.7)
68
- activerecord (= 3.1.7)
69
- activeresource (= 3.1.7)
70
- activesupport (= 3.1.7)
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.7)
73
- railties (3.1.7)
74
- actionpack (= 3.1.7)
75
- activesupport (= 3.1.7)
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.10)
89
+ treetop (1.4.12)
90
90
  polyglot
91
91
  polyglot (>= 0.3.1)
92
- tzinfo (0.3.33)
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
@@ -1,7 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 3.2.6"
4
- gem "minitest", "~> 3.0"
5
4
  gem "rdoc", "~> 3.10"
6
5
  gem "hoe", "~> 3.0"
7
6
  gem "fakefs", "~> 0.4"
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.1.2.20120728124510)
5
- minitest (~> 3.0)
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.7)
12
- actionpack (= 3.2.7)
11
+ actionmailer (3.2.8)
12
+ actionpack (= 3.2.8)
13
13
  mail (~> 2.4.4)
14
- actionpack (3.2.7)
15
- activemodel (= 3.2.7)
16
- activesupport (= 3.2.7)
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.7)
25
- activesupport (= 3.2.7)
24
+ activemodel (3.2.8)
25
+ activesupport (= 3.2.8)
26
26
  builder (~> 3.0.0)
27
- activerecord (3.2.7)
28
- activemodel (= 3.2.7)
29
- activesupport (= 3.2.7)
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.7)
33
- activemodel (= 3.2.7)
34
- activesupport (= 3.2.7)
35
- activesupport (3.2.7)
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.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.6)
43
+ hoe (3.1.0)
44
44
  rake (~> 0.8)
45
- i18n (0.6.0)
45
+ i18n (0.6.1)
46
46
  journey (1.0.4)
47
- json (1.7.4)
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 (3.3.0)
54
- multi_json (1.3.6)
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.1)
61
+ rack-test (0.6.2)
62
62
  rack (>= 1.0)
63
- rails (3.2.7)
64
- actionmailer (= 3.2.7)
65
- actionpack (= 3.2.7)
66
- activerecord (= 3.2.7)
67
- activeresource (= 3.2.7)
68
- activesupport (= 3.2.7)
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.7)
71
- railties (3.2.7)
72
- actionpack (= 3.2.7)
73
- activesupport (= 3.2.7)
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.15.4)
85
+ thor (0.16.0)
86
86
  tilt (1.3.3)
87
- treetop (1.4.10)
87
+ treetop (1.4.12)
88
88
  polyglot
89
89
  polyglot (>= 0.3.1)
90
- tzinfo (0.3.33)
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)