minitest-rails 0.5.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. data/CHANGELOG.rdoc +27 -0
  2. data/Manifest.txt +6 -2
  3. data/README.rdoc +5 -1
  4. data/Rakefile +1 -1
  5. data/gemfiles/3.0.gemfile.lock +6 -6
  6. data/gemfiles/3.1.gemfile.lock +35 -35
  7. data/gemfiles/3.2.gemfile.lock +35 -35
  8. data/gemfiles/4.0.gemfile +1 -1
  9. data/gemfiles/4.0.gemfile.lock +47 -52
  10. data/lib/generators/mini_test/controller/templates/controller_spec.rb +1 -1
  11. data/lib/generators/mini_test/controller/templates/controller_test.rb +1 -1
  12. data/lib/generators/mini_test/helper/templates/helper_spec.rb +1 -1
  13. data/lib/generators/mini_test/helper/templates/helper_test.rb +1 -1
  14. data/lib/generators/mini_test/install/install_generator.rb +1 -1
  15. data/lib/generators/mini_test/install/templates/{test/minitest_helper.rb → test_helper.rb} +5 -6
  16. data/lib/generators/mini_test/integration/templates/integration_spec.rb +1 -1
  17. data/lib/generators/mini_test/integration/templates/integration_test.rb +1 -1
  18. data/lib/generators/mini_test/mailer/templates/mailer_spec.rb +1 -1
  19. data/lib/generators/mini_test/mailer/templates/mailer_test.rb +1 -1
  20. data/lib/generators/mini_test/model/templates/model_spec.rb +1 -1
  21. data/lib/generators/mini_test/model/templates/model_test.rb +1 -1
  22. data/lib/generators/mini_test/route/templates/route_spec.rb +1 -1
  23. data/lib/generators/mini_test/route/templates/route_test.rb +1 -1
  24. data/lib/generators/mini_test/scaffold/templates/controller_spec.rb +1 -1
  25. data/lib/generators/mini_test/scaffold/templates/controller_test.rb +1 -1
  26. data/lib/minitest/rails.rb +28 -61
  27. data/lib/minitest/rails/deprecated/action_controller.rb +2 -0
  28. data/lib/minitest/rails/deprecated/action_dispatch.rb +2 -0
  29. data/lib/minitest/rails/deprecated/action_mailer.rb +4 -0
  30. data/lib/minitest/rails/deprecated/action_view.rb +2 -0
  31. data/lib/minitest/rails/deprecated/active_support.rb +2 -0
  32. data/lib/minitest/rails/tasks/minitest.rake +1 -1
  33. data/lib/minitest/rails/version.rb +1 -1
  34. data/minitest-rails.gemspec +7 -7
  35. data/test/generators/test_install_generator.rb +4 -4
  36. data/test/helper.rb +1 -0
  37. metadata +26 -22
  38. data/lib/minitest/rails/test_case.rb +0 -93
@@ -1,3 +1,30 @@
1
+ === 0.9.0 / 2013-03-18
2
+
3
+ This release marks a new direction for minitest-rails. Deprecations have been added for the features that won't make it to 1.0. See instructions for upgrading to 0.9:
4
+
5
+ https://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9
6
+
7
+ * 1 major enhancement:
8
+
9
+ * Use newly added MiniTest::Spec::DSL
10
+
11
+ * 2 minor enhancements:
12
+
13
+ * Add deprecation warnings
14
+ * Switch back to the default test helper name, for easier integration in Rails 4.
15
+ * Update Rails 4 Gemfile
16
+
17
+ https://github.com/blowmage/minitest-rails/compare/v0.5.2...v0.9.0
18
+
19
+ === 0.5.2 / 2013-02-21
20
+
21
+ * Allow running of single test file
22
+ * Update README
23
+ * Update install instructions
24
+ * Fix test helper's instructions
25
+
26
+ https://github.com/blowmage/minitest-rails/compare/v0.5.1...v0.5.2
27
+
1
28
  === 0.5.1 / 2013-01-24
2
29
 
3
30
  * Add route test generator
@@ -26,7 +26,7 @@ lib/generators/mini_test/helper/helper_generator.rb
26
26
  lib/generators/mini_test/helper/templates/helper_spec.rb
27
27
  lib/generators/mini_test/helper/templates/helper_test.rb
28
28
  lib/generators/mini_test/install/install_generator.rb
29
- lib/generators/mini_test/install/templates/test/minitest_helper.rb
29
+ lib/generators/mini_test/install/templates/test_helper.rb
30
30
  lib/generators/mini_test/integration/integration_generator.rb
31
31
  lib/generators/mini_test/integration/templates/integration_spec.rb
32
32
  lib/generators/mini_test/integration/templates/integration_test.rb
@@ -46,10 +46,14 @@ lib/generators/mini_test/scaffold/templates/controller_test.rb
46
46
  lib/minitest-rails.rb
47
47
  lib/minitest/rails.rb
48
48
  lib/minitest/rails/constant_lookup.rb
49
+ lib/minitest/rails/deprecated/action_controller.rb
50
+ lib/minitest/rails/deprecated/action_dispatch.rb
51
+ lib/minitest/rails/deprecated/action_mailer.rb
52
+ lib/minitest/rails/deprecated/action_view.rb
53
+ lib/minitest/rails/deprecated/active_support.rb
49
54
  lib/minitest/rails/railtie.rb
50
55
  lib/minitest/rails/tasks/minitest.rake
51
56
  lib/minitest/rails/tasks/sub_test_task.rb
52
- lib/minitest/rails/test_case.rb
53
57
  lib/minitest/rails/testing.rb
54
58
  lib/minitest/rails/version.rb
55
59
  minitest-rails.gemspec
@@ -27,7 +27,7 @@ Next run the installation generator with the following:
27
27
 
28
28
  rails generate mini_test:install
29
29
 
30
- This will add the <tt>minitest_helper.rb</tt> file to the <tt>test</tt> directory.
30
+ This will add the <tt>test_helper.rb</tt> file to the <tt>test</tt> directory.
31
31
 
32
32
  == Usage
33
33
 
@@ -55,6 +55,10 @@ You can also set these as defaults by adding the following to the <tt>config/app
55
55
 
56
56
  You can use Capybara for feature tests by adding <tt>minitest-rails-capybara</tt> as a dependency. See the README for more information: https://github.com/blowmage/minitest-rails-capybara
57
57
 
58
+ == Upgrading
59
+
60
+ The 0.9 release marks a new direction for minitest-rails. Deprecations have been added for the features that won't make it to 1.0. See instructions for upgrading to 0.9: https://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9
61
+
58
62
  == Incompatibilities
59
63
 
60
64
  Efforts have been made to be compatible with Ruby 1.8.7, but some rough edges may remain. You have been warned.
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ Hoe.spec 'minitest-rails' do
19
19
  self.readme_file = "README.rdoc"
20
20
  self.testlib = :minitest
21
21
 
22
- dependency 'minitest', '~> 4.0'
22
+ dependency 'minitest', '~> 4.7'
23
23
  dependency 'rails', '>= 3.0'
24
24
  dependency 'fakefs', '~> 0.4', :dev
25
25
  end
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.5.2.20130221095237)
5
- minitest (~> 4.0)
4
+ minitest-rails (0.9.0.20130318184615)
5
+ minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
8
8
  GEM
@@ -40,7 +40,7 @@ GEM
40
40
  erubis (2.6.6)
41
41
  abstract (>= 1.0.0)
42
42
  fakefs (0.4.2)
43
- hoe (3.5.0)
43
+ hoe (3.5.2)
44
44
  rake (>= 0.8, < 11.0)
45
45
  i18n (0.5.0)
46
46
  json (1.7.7)
@@ -50,7 +50,7 @@ GEM
50
50
  mime-types (~> 1.16)
51
51
  treetop (~> 1.4.8)
52
52
  mime-types (1.21)
53
- minitest (4.6.1)
53
+ minitest (4.7.0)
54
54
  polyglot (0.3.3)
55
55
  rack (1.2.8)
56
56
  rack-mount (0.6.14)
@@ -72,13 +72,13 @@ GEM
72
72
  rdoc (~> 3.4)
73
73
  thor (~> 0.14.4)
74
74
  rake (10.0.3)
75
- rdoc (3.12.1)
75
+ rdoc (3.12.2)
76
76
  json (~> 1.4)
77
77
  thor (0.14.6)
78
78
  treetop (1.4.12)
79
79
  polyglot
80
80
  polyglot (>= 0.3.1)
81
- tzinfo (0.3.35)
81
+ tzinfo (0.3.37)
82
82
 
83
83
  PLATFORMS
84
84
  ruby
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.5.2.20130221095237)
5
- minitest (~> 4.0)
4
+ minitest-rails (0.9.0.20130318184615)
5
+ minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionmailer (3.1.11)
12
- actionpack (= 3.1.11)
13
- mail (~> 2.3.3)
14
- actionpack (3.1.11)
15
- activemodel (= 3.1.11)
16
- activesupport (= 3.1.11)
11
+ actionmailer (3.1.12)
12
+ actionpack (= 3.1.12)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.1.12)
15
+ activemodel (= 3.1.12)
16
+ activesupport (= 3.1.12)
17
17
  builder (~> 3.0.0)
18
18
  erubis (~> 2.7.0)
19
19
  i18n (~> 0.6)
@@ -22,36 +22,36 @@ 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.11)
26
- activesupport (= 3.1.11)
25
+ activemodel (3.1.12)
26
+ activesupport (= 3.1.12)
27
27
  builder (~> 3.0.0)
28
28
  i18n (~> 0.6)
29
- activerecord (3.1.11)
30
- activemodel (= 3.1.11)
31
- activesupport (= 3.1.11)
29
+ activerecord (3.1.12)
30
+ activemodel (= 3.1.12)
31
+ activesupport (= 3.1.12)
32
32
  arel (~> 2.2.3)
33
33
  tzinfo (~> 0.3.29)
34
- activeresource (3.1.11)
35
- activemodel (= 3.1.11)
36
- activesupport (= 3.1.11)
37
- activesupport (3.1.11)
34
+ activeresource (3.1.12)
35
+ activemodel (= 3.1.12)
36
+ activesupport (= 3.1.12)
37
+ activesupport (3.1.12)
38
38
  multi_json (~> 1.0)
39
39
  arel (2.2.3)
40
40
  builder (3.0.4)
41
41
  erubis (2.7.0)
42
42
  fakefs (0.4.2)
43
43
  hike (1.2.1)
44
- hoe (3.5.0)
44
+ hoe (3.5.2)
45
45
  rake (>= 0.8, < 11.0)
46
- i18n (0.6.1)
46
+ i18n (0.6.4)
47
47
  json (1.7.7)
48
- mail (2.3.3)
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.21)
53
- minitest (4.6.1)
54
- multi_json (1.6.1)
53
+ minitest (4.7.0)
54
+ multi_json (1.7.1)
55
55
  polyglot (0.3.3)
56
56
  rack (1.3.10)
57
57
  rack-cache (1.2)
@@ -62,34 +62,34 @@ GEM
62
62
  rack
63
63
  rack-test (0.6.2)
64
64
  rack (>= 1.0)
65
- rails (3.1.11)
66
- actionmailer (= 3.1.11)
67
- actionpack (= 3.1.11)
68
- activerecord (= 3.1.11)
69
- activeresource (= 3.1.11)
70
- activesupport (= 3.1.11)
65
+ rails (3.1.12)
66
+ actionmailer (= 3.1.12)
67
+ actionpack (= 3.1.12)
68
+ activerecord (= 3.1.12)
69
+ activeresource (= 3.1.12)
70
+ activesupport (= 3.1.12)
71
71
  bundler (~> 1.0)
72
- railties (= 3.1.11)
73
- railties (3.1.11)
74
- actionpack (= 3.1.11)
75
- activesupport (= 3.1.11)
72
+ railties (= 3.1.12)
73
+ railties (3.1.12)
74
+ actionpack (= 3.1.12)
75
+ activesupport (= 3.1.12)
76
76
  rack-ssl (~> 1.3.2)
77
77
  rake (>= 0.8.7)
78
78
  rdoc (~> 3.4)
79
79
  thor (~> 0.14.6)
80
80
  rake (10.0.3)
81
- rdoc (3.12.1)
81
+ rdoc (3.12.2)
82
82
  json (~> 1.4)
83
83
  sprockets (2.0.4)
84
84
  hike (~> 1.2)
85
85
  rack (~> 1.0)
86
86
  tilt (~> 1.1, != 1.3.0)
87
87
  thor (0.14.6)
88
- tilt (1.3.3)
88
+ tilt (1.3.6)
89
89
  treetop (1.4.12)
90
90
  polyglot
91
91
  polyglot (>= 0.3.1)
92
- tzinfo (0.3.35)
92
+ tzinfo (0.3.37)
93
93
 
94
94
  PLATFORMS
95
95
  ruby
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.5.2.20130221095237)
5
- minitest (~> 4.0)
4
+ minitest-rails (0.9.0.20130318184615)
5
+ minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionmailer (3.2.12)
12
- actionpack (= 3.2.12)
13
- mail (~> 2.4.4)
14
- actionpack (3.2.12)
15
- activemodel (= 3.2.12)
16
- activesupport (= 3.2.12)
11
+ actionmailer (3.2.13)
12
+ actionpack (= 3.2.13)
13
+ mail (~> 2.5.3)
14
+ actionpack (3.2.13)
15
+ activemodel (= 3.2.13)
16
+ activesupport (= 3.2.13)
17
17
  builder (~> 3.0.0)
18
18
  erubis (~> 2.7.0)
19
19
  journey (~> 1.0.4)
@@ -21,37 +21,37 @@ GEM
21
21
  rack-cache (~> 1.2)
22
22
  rack-test (~> 0.6.1)
23
23
  sprockets (~> 2.2.1)
24
- activemodel (3.2.12)
25
- activesupport (= 3.2.12)
24
+ activemodel (3.2.13)
25
+ activesupport (= 3.2.13)
26
26
  builder (~> 3.0.0)
27
- activerecord (3.2.12)
28
- activemodel (= 3.2.12)
29
- activesupport (= 3.2.12)
27
+ activerecord (3.2.13)
28
+ activemodel (= 3.2.13)
29
+ activesupport (= 3.2.13)
30
30
  arel (~> 3.0.2)
31
31
  tzinfo (~> 0.3.29)
32
- activeresource (3.2.12)
33
- activemodel (= 3.2.12)
34
- activesupport (= 3.2.12)
35
- activesupport (3.2.12)
36
- i18n (~> 0.6)
32
+ activeresource (3.2.13)
33
+ activemodel (= 3.2.13)
34
+ activesupport (= 3.2.13)
35
+ activesupport (3.2.13)
36
+ i18n (= 0.6.1)
37
37
  multi_json (~> 1.0)
38
38
  arel (3.0.2)
39
39
  builder (3.0.4)
40
40
  erubis (2.7.0)
41
41
  fakefs (0.4.2)
42
42
  hike (1.2.1)
43
- hoe (3.5.0)
43
+ hoe (3.5.2)
44
44
  rake (>= 0.8, < 11.0)
45
45
  i18n (0.6.1)
46
46
  journey (1.0.4)
47
47
  json (1.7.7)
48
- mail (2.4.4)
48
+ mail (2.5.3)
49
49
  i18n (>= 0.4.0)
50
50
  mime-types (~> 1.16)
51
51
  treetop (~> 1.4.8)
52
52
  mime-types (1.21)
53
- minitest (4.6.1)
54
- multi_json (1.6.1)
53
+ minitest (4.7.0)
54
+ multi_json (1.7.1)
55
55
  polyglot (0.3.3)
56
56
  rack (1.4.5)
57
57
  rack-cache (1.2)
@@ -60,23 +60,23 @@ GEM
60
60
  rack
61
61
  rack-test (0.6.2)
62
62
  rack (>= 1.0)
63
- rails (3.2.12)
64
- actionmailer (= 3.2.12)
65
- actionpack (= 3.2.12)
66
- activerecord (= 3.2.12)
67
- activeresource (= 3.2.12)
68
- activesupport (= 3.2.12)
63
+ rails (3.2.13)
64
+ actionmailer (= 3.2.13)
65
+ actionpack (= 3.2.13)
66
+ activerecord (= 3.2.13)
67
+ activeresource (= 3.2.13)
68
+ activesupport (= 3.2.13)
69
69
  bundler (~> 1.0)
70
- railties (= 3.2.12)
71
- railties (3.2.12)
72
- actionpack (= 3.2.12)
73
- activesupport (= 3.2.12)
70
+ railties (= 3.2.13)
71
+ railties (3.2.13)
72
+ actionpack (= 3.2.13)
73
+ activesupport (= 3.2.13)
74
74
  rack-ssl (~> 1.3.2)
75
75
  rake (>= 0.8.7)
76
76
  rdoc (~> 3.4)
77
77
  thor (>= 0.14.6, < 2.0)
78
78
  rake (10.0.3)
79
- rdoc (3.12.1)
79
+ rdoc (3.12.2)
80
80
  json (~> 1.4)
81
81
  sprockets (2.2.2)
82
82
  hike (~> 1.2)
@@ -84,11 +84,11 @@ GEM
84
84
  rack (~> 1.0)
85
85
  tilt (~> 1.1, != 1.3.0)
86
86
  thor (0.17.0)
87
- tilt (1.3.3)
87
+ tilt (1.3.6)
88
88
  treetop (1.4.12)
89
89
  polyglot
90
90
  polyglot (>= 0.3.1)
91
- tzinfo (0.3.35)
91
+ tzinfo (0.3.37)
92
92
 
93
93
  PLATFORMS
94
94
  ruby
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", github: "rails/rails" # Set to master until we get a release
3
+ gem "rails", "4.0.0.beta1"
4
4
  gem "rdoc", "~> 3.10"
5
5
  gem "hoe", "~> 3.0"
6
6
  gem "fakefs", "~> 0.4"
@@ -1,97 +1,92 @@
1
- GIT
2
- remote: git://github.com/rails/rails.git
3
- revision: b4051edf841c8a6780df9af7afa9892bfd811c79
1
+ PATH
2
+ remote: /Users/blowmage/codez/minitest-rails
3
+ specs:
4
+ minitest-rails (0.9.0.20130318184615)
5
+ minitest (~> 4.7)
6
+ rails (>= 3.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
4
10
  specs:
5
- actionmailer (4.0.0.beta)
6
- actionpack (= 4.0.0.beta)
11
+ actionmailer (4.0.0.beta1)
12
+ actionpack (= 4.0.0.beta1)
7
13
  mail (~> 2.5.3)
8
- actionpack (4.0.0.beta)
9
- activesupport (= 4.0.0.beta)
14
+ actionpack (4.0.0.beta1)
15
+ activesupport (= 4.0.0.beta1)
10
16
  builder (~> 3.1.0)
11
17
  erubis (~> 2.7.0)
12
18
  rack (~> 1.5.2)
13
19
  rack-test (~> 0.6.2)
14
- activemodel (4.0.0.beta)
15
- activesupport (= 4.0.0.beta)
20
+ activemodel (4.0.0.beta1)
21
+ activesupport (= 4.0.0.beta1)
16
22
  builder (~> 3.1.0)
17
- activerecord (4.0.0.beta)
18
- activemodel (= 4.0.0.beta)
23
+ activerecord (4.0.0.beta1)
24
+ activemodel (= 4.0.0.beta1)
19
25
  activerecord-deprecated_finders (~> 0.0.3)
20
- activesupport (= 4.0.0.beta)
21
- arel (~> 3.0.2)
22
- activesupport (4.0.0.beta)
23
- i18n (~> 0.6)
26
+ activesupport (= 4.0.0.beta1)
27
+ arel (~> 4.0.0.beta1)
28
+ activerecord-deprecated_finders (0.0.3)
29
+ activesupport (4.0.0.beta1)
30
+ i18n (~> 0.6.2)
24
31
  minitest (~> 4.2)
25
32
  multi_json (~> 1.3)
26
33
  thread_safe (~> 0.1)
27
34
  tzinfo (~> 0.3.33)
28
- rails (4.0.0.beta)
29
- actionmailer (= 4.0.0.beta)
30
- actionpack (= 4.0.0.beta)
31
- activerecord (= 4.0.0.beta)
32
- activesupport (= 4.0.0.beta)
33
- bundler (>= 1.2.2, < 2.0)
34
- railties (= 4.0.0.beta)
35
- sprockets-rails (~> 2.0.0.rc1)
36
- railties (4.0.0.beta)
37
- actionpack (= 4.0.0.beta)
38
- activesupport (= 4.0.0.beta)
39
- rake (>= 0.8.7)
40
- rdoc (~> 3.4)
41
- thor (>= 0.17.0, < 2.0)
42
-
43
- PATH
44
- remote: /Users/blowmage/codez/minitest-rails
45
- specs:
46
- minitest-rails (0.5.2.20130221095237)
47
- minitest (~> 4.0)
48
- rails (>= 3.0)
49
-
50
- GEM
51
- remote: http://rubygems.org/
52
- specs:
53
- activerecord-deprecated_finders (0.0.3)
54
- arel (3.0.2)
35
+ arel (4.0.0.beta2)
55
36
  atomic (1.0.1)
56
37
  builder (3.1.4)
57
38
  erubis (2.7.0)
58
39
  fakefs (0.4.2)
59
40
  hike (1.2.1)
60
- hoe (3.5.0)
41
+ hoe (3.5.2)
61
42
  rake (>= 0.8, < 11.0)
62
- i18n (0.6.1)
43
+ i18n (0.6.4)
63
44
  json (1.7.7)
64
45
  mail (2.5.3)
65
46
  i18n (>= 0.4.0)
66
47
  mime-types (~> 1.16)
67
48
  treetop (~> 1.4.8)
68
49
  mime-types (1.21)
69
- minitest (4.6.1)
70
- multi_json (1.6.1)
50
+ minitest (4.7.0)
51
+ multi_json (1.7.1)
71
52
  polyglot (0.3.3)
72
53
  rack (1.5.2)
73
54
  rack-test (0.6.2)
74
55
  rack (>= 1.0)
56
+ rails (4.0.0.beta1)
57
+ actionmailer (= 4.0.0.beta1)
58
+ actionpack (= 4.0.0.beta1)
59
+ activerecord (= 4.0.0.beta1)
60
+ activesupport (= 4.0.0.beta1)
61
+ bundler (>= 1.3.0, < 2.0)
62
+ railties (= 4.0.0.beta1)
63
+ sprockets-rails (~> 2.0.0.rc3)
64
+ railties (4.0.0.beta1)
65
+ actionpack (= 4.0.0.beta1)
66
+ activesupport (= 4.0.0.beta1)
67
+ rake (>= 0.8.7)
68
+ rdoc (~> 3.4)
69
+ thor (>= 0.17.0, < 2.0)
75
70
  rake (10.0.3)
76
- rdoc (3.12.1)
71
+ rdoc (3.12.2)
77
72
  json (~> 1.4)
78
- sprockets (2.8.2)
73
+ sprockets (2.9.0)
79
74
  hike (~> 1.2)
80
75
  multi_json (~> 1.0)
81
76
  rack (~> 1.0)
82
77
  tilt (~> 1.1, != 1.3.0)
83
- sprockets-rails (2.0.0.rc2)
78
+ sprockets-rails (2.0.0.rc3)
84
79
  actionpack (>= 3.0)
85
80
  activesupport (>= 3.0)
86
81
  sprockets (~> 2.8)
87
82
  thor (0.17.0)
88
83
  thread_safe (0.1.0)
89
84
  atomic
90
- tilt (1.3.3)
85
+ tilt (1.3.6)
91
86
  treetop (1.4.12)
92
87
  polyglot
93
88
  polyglot (>= 0.3.1)
94
- tzinfo (0.3.35)
89
+ tzinfo (0.3.37)
95
90
 
96
91
  PLATFORMS
97
92
  ruby
@@ -100,5 +95,5 @@ DEPENDENCIES
100
95
  fakefs (~> 0.4)
101
96
  hoe (~> 3.0)
102
97
  minitest-rails!
103
- rails!
98
+ rails (= 4.0.0.beta1)
104
99
  rdoc (~> 3.10)
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  describe <%= class_name %>Controller do
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  class <%= class_name %>ControllerTest < ActionController::TestCase
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  describe <%= class_name %>Helper do
4
4
 
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  class <%= class_name %>HelperTest < ActionView::TestCase
@@ -14,7 +14,7 @@ DESC
14
14
  end
15
15
 
16
16
  def copy_minitest_files
17
- template 'test/minitest_helper.rb', File.join("test", "minitest_helper.rb")
17
+ template 'test_helper.rb', File.join("test", "test_helper.rb")
18
18
  end
19
19
 
20
20
  end
@@ -1,14 +1,13 @@
1
1
  ENV["RAILS_ENV"] = "test"
2
- require File.expand_path('../../config/environment', __FILE__)
3
-
4
- require "minitest/autorun"
2
+ require File.expand_path("../../config/environment", __FILE__)
3
+ require "rails/test_help"
5
4
  require "minitest/rails"
6
5
 
7
- # Add `gem "minitest-rails-capybara"` to the test group of your Gemfile
8
- # and uncomment the following if you want Capybara feature tests
6
+ # To add Capybara feature tests add `gem "minitest-rails-capybara"`
7
+ # to the test group in the Gemfile and uncomment the following:
9
8
  # require "minitest/rails/capybara"
10
9
 
11
- # Uncomment if you want awesome colorful output
10
+ # Uncomment for awesome colorful output
12
11
  # require "minitest/pride"
13
12
 
14
13
  class ActiveSupport::TestCase
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  # To be handled correctly this spec must end with "Integration Test"
4
4
  describe "<%= class_name %> Integration Test" do
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  class <%= class_name %>Test < ActionDispatch::IntegrationTest
4
4
  # test "the truth" do
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  describe <%= class_name %> do
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  class <%= class_name %>Test < ActionMailer::TestCase
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  describe <%= class_name %> do
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  class <%= class_name %>Test < ActiveSupport::TestCase
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  # Add the following to your Rake file to test routes by default:
4
4
  # MiniTest::Rails::Testing.default_tasks << "routes"
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  # Add the following to your Rake file to test routes by default:
4
4
  # MiniTest::Rails::Testing.default_tasks << "routes"
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  describe <%= controller_class_name %>Controller do
@@ -1,4 +1,4 @@
1
- require "minitest_helper"
1
+ require "test_helper"
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  class <%= controller_class_name %>ControllerTest < ActionController::TestCase
@@ -1,23 +1,26 @@
1
- # Make double-sure the RAILS_ENV is not set to production,
2
- # so fixtures aren't loaded into that environment
3
- abort("Abort testing: Your Rails environment is running in production mode!") if Rails.env.production?
4
-
5
- require "minitest/rails/test_case"
6
-
7
- # Enable turn if it is available
8
- begin
9
- require "turn/autorun"
10
- rescue LoadError
1
+ gem "minitest"
2
+ require "minitest/autorun"
3
+
4
+ # Call rails/test_help because previous versions of minitest-rails
5
+ # duplicated this functionality while trying to control the order
6
+ # that the testing classes were loaded.
7
+ # Will be removed in 1.0
8
+ if require "rails/test_help"
9
+ ActiveSupport::Deprecation.warn "It looks like you are using test helper generated by an older version of minitest-rails. Please upgrade your test_helper by following the instructions below. Support for this older helper will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
11
10
  end
12
11
 
13
- # Override the default ActiveSupport::TestCase to set the minitest dependency
12
+ ################################################################################
13
+ # Add and configure the spec DSL
14
+ ################################################################################
14
15
 
15
16
  require "active_support/test_case"
16
- Kernel.silence_warnings do
17
- ActiveSupport.const_set :TestCase, MiniTest::Rails::TestCase
18
- end
17
+ require "minitest/rails/constant_lookup"
18
+ class ActiveSupport::TestCase
19
+ extend MiniTest::Spec::DSL
19
20
 
20
- # Add spec DSL integration
21
+ # Resolve constants from the test name when using the spec DSL
22
+ include MiniTest::Rails::Testing::ConstantLookup
23
+ end
21
24
 
22
25
  if defined?(ActiveRecord::Base)
23
26
  class ActiveSupport::TestCase
@@ -86,58 +89,22 @@ class ActionDispatch::IntegrationTest
86
89
  register_spec_type(/(Integration|Acceptance)( ?Test)?\z/i, self)
87
90
  end
88
91
 
89
- # Default wiring for the tests. This was originaly done in the helper.
90
-
91
- # Enable fixtures if appropriate
92
-
93
- if defined?(ActiveRecord::Base)
94
- class ActiveSupport::TestCase
95
- include ActiveRecord::TestFixtures
96
- self.fixture_path = "#{Rails.root}/test/fixtures/"
97
- end
98
-
99
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
100
-
101
- def create_fixtures(*table_names, &block)
102
- ActiveRecord::Fixtures.create_fixtures(ActiveSupport::TestCase.fixture_path, table_names, {}, &block)
103
- end
104
- end
105
-
106
- # Setup the routes
107
-
108
- class ActionController::TestCase
109
- setup do
110
- @routes = Rails.application.routes
111
- end
112
- end
113
-
114
- class ActionDispatch::IntegrationTest
115
- setup do
116
- @routes = Rails.application.routes
117
- end
118
- end
119
-
92
+ ################################################################################
120
93
  # Deprecated, for backwards compatibility with older minitest-rails only
94
+ # Will be removed at version 1.0
95
+ ################################################################################
121
96
 
122
97
  module MiniTest
123
98
  module Rails
124
99
  def self.override_testunit!
100
+ ActiveSupport::Deprecation.warn "MiniTest::Rails.override_testunit! is deprecated. Please remove calls to this method from your helper and tests. The method will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
125
101
  # noop
126
102
  end
127
- module ActiveSupport
128
- TestCase = ::ActiveSupport::TestCase
129
- end
130
- module ActionController
131
- TestCase = ::ActionController::TestCase
132
- end
133
- module ActionView
134
- TestCase = ::ActionView::TestCase
135
- end
136
- module ActionMailer
137
- TestCase = ::ActionMailer::TestCase if defined? ::ActionMailer
138
- end
139
- module ActionDispatch
140
- IntegrationTest = ::ActionDispatch::IntegrationTest
141
- end
103
+ extend ::ActiveSupport::Autoload
104
+ autoload :ActiveSupport, 'minitest/rails/deprecated/active_support'
105
+ autoload :ActionController, 'minitest/rails/deprecated/action_controller'
106
+ autoload :ActionView, 'minitest/rails/deprecated/action_view'
107
+ autoload :ActionMailer, 'minitest/rails/deprecated/action_mailer'
108
+ autoload :ActionDispatch, 'minitest/rails/deprecated/action_dispatch'
142
109
  end
143
110
  end
@@ -0,0 +1,2 @@
1
+ ActiveSupport::Deprecation.warn "MiniTest::Rails::ActionController::TestCase is deprecated. Please remove 'MiniTest::Rails::' from your tests. Support for this namespace will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
2
+ MiniTest::Rails::ActionController::TestCase = ::ActionController::TestCase
@@ -0,0 +1,2 @@
1
+ ActiveSupport::Deprecation.warn "MiniTest::Rails::ActionDispatch::TestCase is deprecated. Please remove 'MiniTest::Rails::' from your tests. Support for this namespace will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
2
+ MiniTest::Rails::ActionDispatch::TestCase = ::ActionDispatch::TestCase
@@ -0,0 +1,4 @@
1
+ ActiveSupport::Deprecation.warn "MiniTest::Rails::ActionMailer::TestCase is deprecated. Please remove 'MiniTest::Rails::' from your tests. Support for this namespace will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
2
+ if defined? ActionMailer
3
+ MiniTest::Rails::ActionMailer::TestCase = ::ActionMailer::TestCase
4
+ end
@@ -0,0 +1,2 @@
1
+ ActiveSupport::Deprecation.warn "MiniTest::Rails::ActionView::TestCase is deprecated. Please remove 'MiniTest::Rails::' from your tests. Support for this namespace will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
2
+ MiniTest::Rails::ActionView::TestCase = ::ActionView::TestCase
@@ -0,0 +1,2 @@
1
+ ActiveSupport::Deprecation.warn "MiniTest::Rails::ActiveSupport::TestCase is deprecated. Please remove 'MiniTest::Rails::' from your tests. Support for this namespace will removed when minitest-rails reaches 1.0 release.\n\nhttps://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9"
2
+ MiniTest::Rails::ActiveSupport::TestCase = ::ActiveSupport::TestCase
@@ -36,7 +36,7 @@ namespace "minitest" do
36
36
  end
37
37
  end
38
38
 
39
- Rake::TestTask.new(:single => "test:prepare") do |t|
39
+ MiniTest::Rails::Tasks::SubTestTask.new(:single => "test:prepare") do |t|
40
40
  t.libs << "test"
41
41
  end
42
42
 
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Rails
3
- VERSION = "0.5.2"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "minitest-rails"
5
- s.version = "0.5.2.20130221095237"
5
+ s.version = "0.9.0.20130318184615"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mike Moore"]
9
- s.date = "2013-02-21"
9
+ s.date = "2013-03-19"
10
10
  s.description = "Adds MiniTest as the default testing library in Rails 3 and 4"
11
11
  s.email = ["mike@blowmage.com"]
12
12
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
13
- s.files = [".autotest", ".gemtest", ".travis.yml", "CHANGELOG.rdoc", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "gemfiles/3.0.gemfile", "gemfiles/3.0.gemfile.lock", "gemfiles/3.1.gemfile", "gemfiles/3.1.gemfile.lock", "gemfiles/3.2.gemfile", "gemfiles/3.2.gemfile.lock", "gemfiles/4.0.gemfile", "gemfiles/4.0.gemfile.lock", "lib/autotest/discover.rb", "lib/autotest/fixtures.rb", "lib/autotest/migrate.rb", "lib/autotest/minitest_rails.rb", "lib/generators/mini_test.rb", "lib/generators/mini_test/controller/controller_generator.rb", "lib/generators/mini_test/controller/templates/controller_spec.rb", "lib/generators/mini_test/controller/templates/controller_test.rb", "lib/generators/mini_test/helper/helper_generator.rb", "lib/generators/mini_test/helper/templates/helper_spec.rb", "lib/generators/mini_test/helper/templates/helper_test.rb", "lib/generators/mini_test/install/install_generator.rb", "lib/generators/mini_test/install/templates/test/minitest_helper.rb", "lib/generators/mini_test/integration/integration_generator.rb", "lib/generators/mini_test/integration/templates/integration_spec.rb", "lib/generators/mini_test/integration/templates/integration_test.rb", "lib/generators/mini_test/mailer/mailer_generator.rb", "lib/generators/mini_test/mailer/templates/mailer_spec.rb", "lib/generators/mini_test/mailer/templates/mailer_test.rb", "lib/generators/mini_test/model/model_generator.rb", "lib/generators/mini_test/model/templates/fixtures.yml", "lib/generators/mini_test/model/templates/model_spec.rb", "lib/generators/mini_test/model/templates/model_test.rb", "lib/generators/mini_test/route/route_generator.rb", "lib/generators/mini_test/route/templates/route_spec.rb", "lib/generators/mini_test/route/templates/route_test.rb", "lib/generators/mini_test/scaffold/scaffold_generator.rb", "lib/generators/mini_test/scaffold/templates/controller_spec.rb", "lib/generators/mini_test/scaffold/templates/controller_test.rb", "lib/minitest-rails.rb", "lib/minitest/rails.rb", "lib/minitest/rails/constant_lookup.rb", "lib/minitest/rails/railtie.rb", "lib/minitest/rails/tasks/minitest.rake", "lib/minitest/rails/tasks/sub_test_task.rb", "lib/minitest/rails/test_case.rb", "lib/minitest/rails/testing.rb", "lib/minitest/rails/version.rb", "minitest-rails.gemspec", "tasks/gemfiles.rake", "tasks/test.rake", "test/generators/test_controller_generator.rb", "test/generators/test_helper_generator.rb", "test/generators/test_install_generator.rb", "test/generators/test_mailer_generator.rb", "test/generators/test_model_generator.rb", "test/generators/test_route_generator.rb", "test/generators/test_scaffold_generator.rb", "test/helper.rb", "test/rails/action_controller/test_controllers.rb", "test/rails/action_controller/test_spec_type.rb", "test/rails/action_dispatch/test_spec_type.rb", "test/rails/action_mailer/test_mailers.rb", "test/rails/action_mailer/test_spec_type.rb", "test/rails/action_view/test_helpers.rb", "test/rails/action_view/test_spec_type.rb", "test/rails/active_support/test_spec_type.rb", "test/rails/test_constant_lookup.rb", "test/test_sanity.rb"]
13
+ s.files = [".autotest", ".gemtest", ".travis.yml", "CHANGELOG.rdoc", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "gemfiles/3.0.gemfile", "gemfiles/3.0.gemfile.lock", "gemfiles/3.1.gemfile", "gemfiles/3.1.gemfile.lock", "gemfiles/3.2.gemfile", "gemfiles/3.2.gemfile.lock", "gemfiles/4.0.gemfile", "gemfiles/4.0.gemfile.lock", "lib/autotest/discover.rb", "lib/autotest/fixtures.rb", "lib/autotest/migrate.rb", "lib/autotest/minitest_rails.rb", "lib/generators/mini_test.rb", "lib/generators/mini_test/controller/controller_generator.rb", "lib/generators/mini_test/controller/templates/controller_spec.rb", "lib/generators/mini_test/controller/templates/controller_test.rb", "lib/generators/mini_test/helper/helper_generator.rb", "lib/generators/mini_test/helper/templates/helper_spec.rb", "lib/generators/mini_test/helper/templates/helper_test.rb", "lib/generators/mini_test/install/install_generator.rb", "lib/generators/mini_test/install/templates/test_helper.rb", "lib/generators/mini_test/integration/integration_generator.rb", "lib/generators/mini_test/integration/templates/integration_spec.rb", "lib/generators/mini_test/integration/templates/integration_test.rb", "lib/generators/mini_test/mailer/mailer_generator.rb", "lib/generators/mini_test/mailer/templates/mailer_spec.rb", "lib/generators/mini_test/mailer/templates/mailer_test.rb", "lib/generators/mini_test/model/model_generator.rb", "lib/generators/mini_test/model/templates/fixtures.yml", "lib/generators/mini_test/model/templates/model_spec.rb", "lib/generators/mini_test/model/templates/model_test.rb", "lib/generators/mini_test/route/route_generator.rb", "lib/generators/mini_test/route/templates/route_spec.rb", "lib/generators/mini_test/route/templates/route_test.rb", "lib/generators/mini_test/scaffold/scaffold_generator.rb", "lib/generators/mini_test/scaffold/templates/controller_spec.rb", "lib/generators/mini_test/scaffold/templates/controller_test.rb", "lib/minitest-rails.rb", "lib/minitest/rails.rb", "lib/minitest/rails/constant_lookup.rb", "lib/minitest/rails/deprecated/action_controller.rb", "lib/minitest/rails/deprecated/action_dispatch.rb", "lib/minitest/rails/deprecated/action_mailer.rb", "lib/minitest/rails/deprecated/action_view.rb", "lib/minitest/rails/deprecated/active_support.rb", "lib/minitest/rails/railtie.rb", "lib/minitest/rails/tasks/minitest.rake", "lib/minitest/rails/tasks/sub_test_task.rb", "lib/minitest/rails/testing.rb", "lib/minitest/rails/version.rb", "minitest-rails.gemspec", "tasks/gemfiles.rake", "tasks/test.rake", "test/generators/test_controller_generator.rb", "test/generators/test_helper_generator.rb", "test/generators/test_install_generator.rb", "test/generators/test_mailer_generator.rb", "test/generators/test_model_generator.rb", "test/generators/test_route_generator.rb", "test/generators/test_scaffold_generator.rb", "test/helper.rb", "test/rails/action_controller/test_controllers.rb", "test/rails/action_controller/test_spec_type.rb", "test/rails/action_dispatch/test_spec_type.rb", "test/rails/action_mailer/test_mailers.rb", "test/rails/action_mailer/test_spec_type.rb", "test/rails/action_view/test_helpers.rb", "test/rails/action_view/test_spec_type.rb", "test/rails/active_support/test_spec_type.rb", "test/rails/test_constant_lookup.rb", "test/test_sanity.rb"]
14
14
  s.homepage = "http://blowmage.com/minitest-rails"
15
15
  s.rdoc_options = ["--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = "minitest-rails"
18
- s.rubygems_version = "1.8.25"
18
+ s.rubygems_version = "1.8.23"
19
19
  s.summary = "MiniTest integration for Rails 3 and 4"
20
20
  s.test_files = ["test/generators/test_controller_generator.rb", "test/generators/test_helper_generator.rb", "test/generators/test_install_generator.rb", "test/generators/test_mailer_generator.rb", "test/generators/test_model_generator.rb", "test/generators/test_route_generator.rb", "test/generators/test_scaffold_generator.rb", "test/rails/action_controller/test_controllers.rb", "test/rails/action_controller/test_spec_type.rb", "test/rails/action_dispatch/test_spec_type.rb", "test/rails/action_mailer/test_mailers.rb", "test/rails/action_mailer/test_spec_type.rb", "test/rails/action_view/test_helpers.rb", "test/rails/action_view/test_spec_type.rb", "test/rails/active_support/test_spec_type.rb", "test/rails/test_constant_lookup.rb", "test/test_sanity.rb"]
21
21
 
@@ -23,20 +23,20 @@ Gem::Specification.new do |s|
23
23
  s.specification_version = 3
24
24
 
25
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<minitest>, ["~> 4.0"])
26
+ s.add_runtime_dependency(%q<minitest>, ["~> 4.7"])
27
27
  s.add_runtime_dependency(%q<rails>, [">= 3.0"])
28
28
  s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
29
29
  s.add_development_dependency(%q<fakefs>, ["~> 0.4"])
30
30
  s.add_development_dependency(%q<hoe>, ["~> 3.5"])
31
31
  else
32
- s.add_dependency(%q<minitest>, ["~> 4.0"])
32
+ s.add_dependency(%q<minitest>, ["~> 4.7"])
33
33
  s.add_dependency(%q<rails>, [">= 3.0"])
34
34
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
35
35
  s.add_dependency(%q<fakefs>, ["~> 0.4"])
36
36
  s.add_dependency(%q<hoe>, ["~> 3.5"])
37
37
  end
38
38
  else
39
- s.add_dependency(%q<minitest>, ["~> 4.0"])
39
+ s.add_dependency(%q<minitest>, ["~> 4.7"])
40
40
  s.add_dependency(%q<rails>, [">= 3.0"])
41
41
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
42
42
  s.add_dependency(%q<fakefs>, ["~> 0.4"])
@@ -4,12 +4,12 @@ require "generators/mini_test/install/install_generator"
4
4
  class TestInstallGenerator < GeneratorTest
5
5
 
6
6
  def test_install_generator
7
- assert_output(/create test\/minitest_helper.rb/m) do
7
+ assert_output(/create test\/test_helper.rb/m) do
8
8
  MiniTest::Generators::InstallGenerator.start
9
9
  end
10
- assert File.exists? "test/minitest_helper.rb"
11
- contents = File.read "test/minitest_helper.rb"
12
- assert_match(/require "minitest\/autorun"/m, contents)
10
+ assert File.exists? "test/test_helper.rb"
11
+ contents = File.read "test/test_helper.rb"
12
+ assert_match(/require "rails\/test_help"/m, contents)
13
13
  assert_match(/require "minitest\/rails"/m, contents)
14
14
  end
15
15
 
@@ -11,6 +11,7 @@ require "action_controller/railtie"
11
11
  require "action_mailer"
12
12
 
13
13
  require "minitest-rails"
14
+ require "rails/test_help"
14
15
  require "minitest/rails"
15
16
 
16
17
  require "fakefs/safe"
metadata CHANGED
@@ -2,41 +2,41 @@
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.2
5
+ version: 0.9.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Moore
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ prerelease: false
16
+ type: :runtime
17
+ name: minitest
15
18
  version_requirements: !ruby/object:Gem::Requirement
16
19
  none: false
17
20
  requirements:
18
21
  - - ~>
19
22
  - !ruby/object:Gem::Version
20
- version: '4.0'
21
- name: minitest
22
- type: :runtime
23
- prerelease: false
23
+ version: '4.7'
24
24
  requirement: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '4.0'
29
+ version: '4.7'
30
30
  - !ruby/object:Gem::Dependency
31
+ prerelease: false
32
+ type: :runtime
33
+ name: rails
31
34
  version_requirements: !ruby/object:Gem::Requirement
32
35
  none: false
33
36
  requirements:
34
37
  - - ! '>='
35
38
  - !ruby/object:Gem::Version
36
39
  version: '3.0'
37
- name: rails
38
- type: :runtime
39
- prerelease: false
40
40
  requirement: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
@@ -44,15 +44,15 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '3.0'
46
46
  - !ruby/object:Gem::Dependency
47
+ prerelease: false
48
+ type: :development
49
+ name: rdoc
47
50
  version_requirements: !ruby/object:Gem::Requirement
48
51
  none: false
49
52
  requirements:
50
53
  - - ~>
51
54
  - !ruby/object:Gem::Version
52
55
  version: '3.10'
53
- name: rdoc
54
- type: :development
55
- prerelease: false
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
@@ -60,15 +60,15 @@ dependencies:
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.10'
62
62
  - !ruby/object:Gem::Dependency
63
+ prerelease: false
64
+ type: :development
65
+ name: fakefs
63
66
  version_requirements: !ruby/object:Gem::Requirement
64
67
  none: false
65
68
  requirements:
66
69
  - - ~>
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0.4'
69
- name: fakefs
70
- type: :development
71
- prerelease: false
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
@@ -76,15 +76,15 @@ dependencies:
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0.4'
78
78
  - !ruby/object:Gem::Dependency
79
+ prerelease: false
80
+ type: :development
81
+ name: hoe
79
82
  version_requirements: !ruby/object:Gem::Requirement
80
83
  none: false
81
84
  requirements:
82
85
  - - ~>
83
86
  - !ruby/object:Gem::Version
84
87
  version: '3.5'
85
- name: hoe
86
- type: :development
87
- prerelease: false
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
@@ -129,7 +129,7 @@ files:
129
129
  - lib/generators/mini_test/helper/templates/helper_spec.rb
130
130
  - lib/generators/mini_test/helper/templates/helper_test.rb
131
131
  - lib/generators/mini_test/install/install_generator.rb
132
- - lib/generators/mini_test/install/templates/test/minitest_helper.rb
132
+ - lib/generators/mini_test/install/templates/test_helper.rb
133
133
  - lib/generators/mini_test/integration/integration_generator.rb
134
134
  - lib/generators/mini_test/integration/templates/integration_spec.rb
135
135
  - lib/generators/mini_test/integration/templates/integration_test.rb
@@ -149,10 +149,14 @@ files:
149
149
  - lib/minitest-rails.rb
150
150
  - lib/minitest/rails.rb
151
151
  - lib/minitest/rails/constant_lookup.rb
152
+ - lib/minitest/rails/deprecated/action_controller.rb
153
+ - lib/minitest/rails/deprecated/action_dispatch.rb
154
+ - lib/minitest/rails/deprecated/action_mailer.rb
155
+ - lib/minitest/rails/deprecated/action_view.rb
156
+ - lib/minitest/rails/deprecated/active_support.rb
152
157
  - lib/minitest/rails/railtie.rb
153
158
  - lib/minitest/rails/tasks/minitest.rake
154
159
  - lib/minitest/rails/tasks/sub_test_task.rb
155
- - lib/minitest/rails/test_case.rb
156
160
  - lib/minitest/rails/testing.rb
157
161
  - lib/minitest/rails/version.rb
158
162
  - minitest-rails.gemspec
@@ -198,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
202
  version: '0'
199
203
  requirements: []
200
204
  rubyforge_project: minitest-rails
201
- rubygems_version: 1.8.25
205
+ rubygems_version: 1.8.23
202
206
  signing_key:
203
207
  specification_version: 3
204
208
  summary: MiniTest integration for Rails 3 and 4
@@ -1,93 +0,0 @@
1
- gem "minitest" # make sure we get the gem, not stdlib
2
- require "minitest/spec"
3
-
4
- # I hate this! Be sure you have installed minitest_tu_shim
5
- require "test/unit" if RUBY_VERSION < "1.9"
6
-
7
- begin
8
- require "active_support/testing/tagged_logging"
9
- rescue LoadError; end
10
- require "active_support/testing/setup_and_teardown"
11
- require "active_support/testing/assertions"
12
- require "active_support/testing/deprecation"
13
- require "active_support/testing/pending"
14
- require "active_support/testing/isolation"
15
- require "active_support/core_ext/kernel/reporting"
16
-
17
- begin
18
- require 'active_support/testing/constant_lookup'
19
- rescue LoadError; end
20
- require "minitest/rails/constant_lookup"
21
-
22
- begin
23
- silence_warnings { require "mocha/setup" }
24
- rescue LoadError
25
- end
26
-
27
- module MiniTest
28
- module Rails
29
- class TestCase < MiniTest::Spec
30
-
31
- # This is deprecated in minitest, but I don't want to change the Rails calls to it.
32
- # Keep it here for now, until a better way presents itself...
33
- def assert_block msg = nil
34
- msg = message(msg) { "Expected block to return true value" }
35
- assert yield, msg
36
- end
37
-
38
- # For backward compatibility with Test::Unit
39
- def build_message(message, template = nil, *args)
40
- template = template.gsub('<?>', '<%s>')
41
- message || sprintf(template, *args)
42
- end
43
-
44
- Assertion = MiniTest::Assertion
45
- alias_method :method_name, :name if method_defined? :name
46
- alias_method :method_name, :__name__ if method_defined? :__name__
47
-
48
- $tags = {}
49
- def self.for_tag(tag)
50
- yield if $tags[tag]
51
- end
52
-
53
- include ::ActiveSupport::Testing::TaggedLogging if defined? ActiveSupport::Testing::TaggedLogging
54
- include ::ActiveSupport::Testing::SetupAndTeardown
55
- include ::ActiveSupport::Testing::Assertions
56
- include ::ActiveSupport::Testing::Deprecation
57
- include ::ActiveSupport::Testing::Pending
58
-
59
- # Alias `it` instead of extending ActiveSupport::Testing::Declarative
60
- class << self
61
- alias :test :it
62
- end
63
-
64
- # Resolve constants from the test name when using the spec DSL
65
- include Testing::ConstantLookup
66
-
67
- # test/unit backwards compatibility methods
68
- alias :assert_raise :assert_raises
69
- alias :assert_not_empty :refute_empty
70
- alias :assert_not_equal :refute_equal
71
- alias :assert_not_in_delta :refute_in_delta
72
- alias :assert_not_in_epsilon :refute_in_epsilon
73
- alias :assert_not_includes :refute_includes
74
- alias :assert_not_instance_of :refute_instance_of
75
- alias :assert_not_kind_of :refute_kind_of
76
- alias :assert_no_match :refute_match
77
- alias :assert_not_nil :refute_nil
78
- alias :assert_not_operator :refute_operator
79
- alias :assert_not_predicate :refute_predicate
80
- alias :assert_not_respond_to :refute_respond_to
81
- alias :assert_not_same :refute_same
82
-
83
- # Fails if the block raises an exception.
84
- #
85
- # assert_nothing_raised do
86
- # ...
87
- # end
88
- def assert_nothing_raised(*args)
89
- yield
90
- end
91
- end
92
- end
93
- end