minitest-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,8 +1,7 @@
1
1
  ---
2
- after_script:
3
- - rake travis:after -t
4
2
  before_script:
5
3
  - gem install hoe-travis --no-rdoc --no-ri
4
+ - ruby gemfiles/minitest_tu_shim.rb
6
5
  - rake travis:before -t
7
6
  language: ruby
8
7
  notifications:
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.1.3 / 2012-08-02
2
+
3
+ * Significant improvements to nested describe blocks (closes #58)
4
+ * Tests no longer need write permission to the filesytem
5
+
6
+ https://github.com/blowmage/minitest-rails/compare/v0.1.2...v0.1.3
7
+
1
8
  === 0.1.2 / 2012-07-26
2
9
 
3
10
  * Fix bug when ActionMailer isn't loaded (closes #66)
data/Manifest.txt CHANGED
@@ -7,8 +7,12 @@ Manifest.txt
7
7
  README.rdoc
8
8
  Rakefile
9
9
  gemfiles/3.0.gemfile
10
+ gemfiles/3.0.gemfile.lock
10
11
  gemfiles/3.1.gemfile
12
+ gemfiles/3.1.gemfile.lock
11
13
  gemfiles/3.2.gemfile
14
+ gemfiles/3.2.gemfile.lock
15
+ gemfiles/minitest_tu_shim.rb
12
16
  lib/generators/mini_test.rb
13
17
  lib/generators/mini_test/controller/controller_generator.rb
14
18
  lib/generators/mini_test/controller/templates/controller_spec.rb
@@ -49,7 +53,9 @@ test/generators/test_install_generator.rb
49
53
  test/generators/test_mailer_generator.rb
50
54
  test/generators/test_model_generator.rb
51
55
  test/generators/test_scaffold_generator.rb
52
- test/rails/test_action_controller_spec_type.rb
56
+ test/rails/action_controller/test_controller_lookup.rb
57
+ test/rails/action_controller/test_controllers.rb
58
+ test/rails/action_controller/test_spec_type.rb
53
59
  test/rails/test_action_dispatch_spec_type.rb
54
60
  test/rails/test_action_mailer_spec_type.rb
55
61
  test/rails/test_action_view_spec_type.rb
data/README.rdoc CHANGED
@@ -87,6 +87,23 @@ https://groups.google.com/group/minitest-rails
87
87
 
88
88
  == License
89
89
 
90
- Copyright © 2012 Mike Moore.
91
-
92
- Released under the MIT license. See `LICENSE` for details.
90
+ Copyright (c) 2012 Mike Moore
91
+
92
+ Permission is hereby granted, free of charge, to any person obtaining
93
+ a copy of this software and associated documentation files (the
94
+ "Software"), to deal in the Software without restriction, including
95
+ without limitation the rights to use, copy, modify, merge, publish,
96
+ distribute, sublicense, and/or sell copies of the Software, and to
97
+ permit persons to whom the Software is furnished to do so, subject to
98
+ the following conditions:
99
+
100
+ The above copyright notice and this permission notice shall be
101
+ included in all copies or substantial portions of the Software.
102
+
103
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
104
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
105
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
106
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
107
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
108
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
109
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -19,8 +19,9 @@ Hoe.spec 'minitest-rails' do
19
19
  self.readme_file = "README.rdoc"
20
20
  self.testlib = :minitest
21
21
 
22
- extra_deps << ['minitest', '~> 3.0']
23
- extra_deps << ['rails', '~> 3.0']
22
+ dependency 'minitest', '~> 3.0'
23
+ dependency 'rails', '~> 3.0'
24
+ dependency 'fakefs', '~> 0.4', :dev
24
25
  end
25
26
 
26
27
  # vim: syntax=ruby
data/gemfiles/3.0.gemfile CHANGED
@@ -4,5 +4,6 @@ gem "rails", "~> 3.0.15"
4
4
  gem "minitest", "~> 3.0"
5
5
  gem "rdoc", "~> 3.10"
6
6
  gem "hoe", "~> 3.0"
7
+ gem "fakefs", "~> 0.4"
7
8
 
8
9
  gemspec :path=>"../"
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: /Users/blowmage/codez/minitest-rails
3
+ specs:
4
+ minitest-rails (0.1.2.20120728124510)
5
+ minitest (~> 3.0)
6
+ rails (~> 3.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ abstract (1.0.0)
12
+ actionmailer (3.0.16)
13
+ actionpack (= 3.0.16)
14
+ mail (~> 2.2.19)
15
+ actionpack (3.0.16)
16
+ activemodel (= 3.0.16)
17
+ activesupport (= 3.0.16)
18
+ builder (~> 2.1.2)
19
+ erubis (~> 2.6.6)
20
+ i18n (~> 0.5.0)
21
+ rack (~> 1.2.5)
22
+ rack-mount (~> 0.6.14)
23
+ rack-test (~> 0.5.7)
24
+ tzinfo (~> 0.3.23)
25
+ activemodel (3.0.16)
26
+ activesupport (= 3.0.16)
27
+ builder (~> 2.1.2)
28
+ i18n (~> 0.5.0)
29
+ activerecord (3.0.16)
30
+ activemodel (= 3.0.16)
31
+ activesupport (= 3.0.16)
32
+ arel (~> 2.0.10)
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)
38
+ arel (2.0.10)
39
+ builder (2.1.2)
40
+ erubis (2.6.6)
41
+ abstract (>= 1.0.0)
42
+ fakefs (0.4.0)
43
+ hoe (3.0.6)
44
+ rake (~> 0.8)
45
+ i18n (0.5.0)
46
+ json (1.7.4)
47
+ mail (2.2.19)
48
+ activesupport (>= 2.3.6)
49
+ i18n (>= 0.4.0)
50
+ mime-types (~> 1.16)
51
+ treetop (~> 1.4.8)
52
+ mime-types (1.19)
53
+ minitest (3.3.0)
54
+ polyglot (0.3.3)
55
+ rack (1.2.5)
56
+ rack-mount (0.6.14)
57
+ rack (>= 1.0.0)
58
+ rack-test (0.5.7)
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)
66
+ bundler (~> 1.0)
67
+ railties (= 3.0.16)
68
+ railties (3.0.16)
69
+ actionpack (= 3.0.16)
70
+ activesupport (= 3.0.16)
71
+ rake (>= 0.8.7)
72
+ rdoc (~> 3.4)
73
+ thor (~> 0.14.4)
74
+ rake (0.9.2.2)
75
+ rdoc (3.12)
76
+ json (~> 1.4)
77
+ thor (0.14.6)
78
+ treetop (1.4.10)
79
+ polyglot
80
+ polyglot (>= 0.3.1)
81
+ tzinfo (0.3.33)
82
+
83
+ PLATFORMS
84
+ ruby
85
+
86
+ DEPENDENCIES
87
+ fakefs (~> 0.4)
88
+ hoe (~> 3.0)
89
+ minitest (~> 3.0)
90
+ minitest-rails!
91
+ rails (~> 3.0.15)
92
+ rdoc (~> 3.10)
data/gemfiles/3.1.gemfile CHANGED
@@ -4,5 +4,6 @@ gem "rails", "~> 3.1.6"
4
4
  gem "minitest", "~> 3.0"
5
5
  gem "rdoc", "~> 3.10"
6
6
  gem "hoe", "~> 3.0"
7
+ gem "fakefs", "~> 0.4"
7
8
 
8
9
  gemspec :path=>"../"
@@ -0,0 +1,103 @@
1
+ PATH
2
+ remote: /Users/blowmage/codez/minitest-rails
3
+ specs:
4
+ minitest-rails (0.1.2.20120728124510)
5
+ minitest (~> 3.0)
6
+ rails (~> 3.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.1.7)
12
+ actionpack (= 3.1.7)
13
+ mail (~> 2.3.3)
14
+ actionpack (3.1.7)
15
+ activemodel (= 3.1.7)
16
+ activesupport (= 3.1.7)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ i18n (~> 0.6)
20
+ rack (~> 1.3.6)
21
+ rack-cache (~> 1.2)
22
+ rack-mount (~> 0.8.2)
23
+ rack-test (~> 0.6.1)
24
+ sprockets (~> 2.0.4)
25
+ activemodel (3.1.7)
26
+ activesupport (= 3.1.7)
27
+ builder (~> 3.0.0)
28
+ i18n (~> 0.6)
29
+ activerecord (3.1.7)
30
+ activemodel (= 3.1.7)
31
+ activesupport (= 3.1.7)
32
+ arel (~> 2.2.3)
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)
38
+ multi_json (>= 1.0, < 1.3)
39
+ arel (2.2.3)
40
+ builder (3.0.0)
41
+ erubis (2.7.0)
42
+ fakefs (0.4.0)
43
+ hike (1.2.1)
44
+ hoe (3.0.6)
45
+ rake (~> 0.8)
46
+ i18n (0.6.0)
47
+ json (1.7.4)
48
+ mail (2.3.3)
49
+ i18n (>= 0.4.0)
50
+ mime-types (~> 1.16)
51
+ treetop (~> 1.4.8)
52
+ mime-types (1.19)
53
+ minitest (3.3.0)
54
+ multi_json (1.2.0)
55
+ polyglot (0.3.3)
56
+ rack (1.3.6)
57
+ rack-cache (1.2)
58
+ rack (>= 0.4)
59
+ rack-mount (0.8.3)
60
+ rack (>= 1.0.0)
61
+ rack-ssl (1.3.2)
62
+ rack
63
+ rack-test (0.6.1)
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)
71
+ bundler (~> 1.0)
72
+ railties (= 3.1.7)
73
+ railties (3.1.7)
74
+ actionpack (= 3.1.7)
75
+ activesupport (= 3.1.7)
76
+ rack-ssl (~> 1.3.2)
77
+ rake (>= 0.8.7)
78
+ rdoc (~> 3.4)
79
+ thor (~> 0.14.6)
80
+ rake (0.9.2.2)
81
+ rdoc (3.12)
82
+ json (~> 1.4)
83
+ sprockets (2.0.4)
84
+ hike (~> 1.2)
85
+ rack (~> 1.0)
86
+ tilt (~> 1.1, != 1.3.0)
87
+ thor (0.14.6)
88
+ tilt (1.3.3)
89
+ treetop (1.4.10)
90
+ polyglot
91
+ polyglot (>= 0.3.1)
92
+ tzinfo (0.3.33)
93
+
94
+ PLATFORMS
95
+ ruby
96
+
97
+ DEPENDENCIES
98
+ fakefs (~> 0.4)
99
+ hoe (~> 3.0)
100
+ minitest (~> 3.0)
101
+ minitest-rails!
102
+ rails (~> 3.1.6)
103
+ rdoc (~> 3.10)
data/gemfiles/3.2.gemfile CHANGED
@@ -4,5 +4,6 @@ gem "rails", "~> 3.2.6"
4
4
  gem "minitest", "~> 3.0"
5
5
  gem "rdoc", "~> 3.10"
6
6
  gem "hoe", "~> 3.0"
7
+ gem "fakefs", "~> 0.4"
7
8
 
8
9
  gemspec :path=>"../"
@@ -0,0 +1,101 @@
1
+ PATH
2
+ remote: /Users/blowmage/codez/minitest-rails
3
+ specs:
4
+ minitest-rails (0.1.2.20120728124510)
5
+ minitest (~> 3.0)
6
+ rails (~> 3.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.2.7)
12
+ actionpack (= 3.2.7)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.2.7)
15
+ activemodel (= 3.2.7)
16
+ activesupport (= 3.2.7)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ journey (~> 1.0.4)
20
+ rack (~> 1.4.0)
21
+ rack-cache (~> 1.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.1.3)
24
+ activemodel (3.2.7)
25
+ activesupport (= 3.2.7)
26
+ builder (~> 3.0.0)
27
+ activerecord (3.2.7)
28
+ activemodel (= 3.2.7)
29
+ activesupport (= 3.2.7)
30
+ arel (~> 3.0.2)
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)
36
+ i18n (~> 0.6)
37
+ multi_json (~> 1.0)
38
+ arel (3.0.2)
39
+ builder (3.0.0)
40
+ erubis (2.7.0)
41
+ fakefs (0.4.0)
42
+ hike (1.2.1)
43
+ hoe (3.0.6)
44
+ rake (~> 0.8)
45
+ i18n (0.6.0)
46
+ journey (1.0.4)
47
+ json (1.7.4)
48
+ mail (2.4.4)
49
+ i18n (>= 0.4.0)
50
+ mime-types (~> 1.16)
51
+ treetop (~> 1.4.8)
52
+ mime-types (1.19)
53
+ minitest (3.3.0)
54
+ multi_json (1.3.6)
55
+ polyglot (0.3.3)
56
+ rack (1.4.1)
57
+ rack-cache (1.2)
58
+ rack (>= 0.4)
59
+ rack-ssl (1.3.2)
60
+ rack
61
+ rack-test (0.6.1)
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)
69
+ bundler (~> 1.0)
70
+ railties (= 3.2.7)
71
+ railties (3.2.7)
72
+ actionpack (= 3.2.7)
73
+ activesupport (= 3.2.7)
74
+ rack-ssl (~> 1.3.2)
75
+ rake (>= 0.8.7)
76
+ rdoc (~> 3.4)
77
+ thor (>= 0.14.6, < 2.0)
78
+ rake (0.9.2.2)
79
+ rdoc (3.12)
80
+ json (~> 1.4)
81
+ sprockets (2.1.3)
82
+ hike (~> 1.2)
83
+ rack (~> 1.0)
84
+ tilt (~> 1.1, != 1.3.0)
85
+ thor (0.15.4)
86
+ tilt (1.3.3)
87
+ treetop (1.4.10)
88
+ polyglot
89
+ polyglot (>= 0.3.1)
90
+ tzinfo (0.3.33)
91
+
92
+ PLATFORMS
93
+ ruby
94
+
95
+ DEPENDENCIES
96
+ fakefs (~> 0.4)
97
+ hoe (~> 3.0)
98
+ minitest (~> 3.0)
99
+ minitest-rails!
100
+ rails (~> 3.2.6)
101
+ rdoc (~> 3.10)
@@ -0,0 +1,4 @@
1
+ if RUBY_VERSION < "1.9"
2
+ `gem install minitest_tu_shim`
3
+ `use_minitest yes`
4
+ end
@@ -7,12 +7,20 @@ module MiniTest
7
7
  @_minitest_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'mini_test', generator_name, 'templates'))
8
8
  end
9
9
 
10
- begin
11
- # This method doesn't exist in Rails 3.0
10
+ if ::Rails.version.to_f < 3.1
11
+ protected
12
+ # These methods don't exist in Rails 3.0
12
13
  def module_namespacing(&block)
13
14
  yield if block_given?
14
15
  end
15
- end unless respond_to?(:module_namespacing)
16
+ def key_value(key, value)
17
+ if options[:old_style_hash] || RUBY_VERSION < '1.9'
18
+ ":#{key} => #{value}"
19
+ else
20
+ "#{key}: #{value}"
21
+ end
22
+ end
23
+ end
16
24
  end
17
25
  end
18
26
  end
@@ -3,7 +3,7 @@ require "minitest/unit"
3
3
 
4
4
  module MiniTest
5
5
  module Rails
6
- VERSION = "0.1.2"
6
+ VERSION = "0.1.3"
7
7
  class Railtie < ::Rails::Railtie
8
8
  if ::Rails.version.to_f >= 3.1
9
9
  config.app_generators.integration_tool :mini_test