minitest-rails 0.9.1 → 0.9.2

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.
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  before_install:
3
- - gem install hoe-travis --no-rdoc --no-ri
4
- - gem install bundler --pre --no-rdoc --no-ri
3
+ - gem install hoe-travis bundler --no-rdoc --no-ri
4
+ - ruby gemfiles/minitest_tu_shim.rb
5
5
  before_script:
6
6
  - rake travis:before -t
7
7
  language: ruby
@@ -9,11 +9,16 @@ notifications:
9
9
  email:
10
10
  - mike@blowmage.com
11
11
  rvm:
12
+ - 1.8.7
12
13
  - 1.9.3
13
- - ruby-head
14
+ - 2.0.0
14
15
  gemfile:
15
16
  - gemfiles/3.0.gemfile
16
17
  - gemfiles/3.1.gemfile
17
18
  - gemfiles/3.2.gemfile
18
19
  - gemfiles/4.0.gemfile
19
20
  script: rake travis
21
+ matrix:
22
+ exclude:
23
+ - rvm: 1.8.7
24
+ gemfile: gemfiles/4.0.gemfile
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.9.2 / 2013-04-05
2
+
3
+ * Fix nested describes in ruby 1.8
4
+
5
+ https://github.com/blowmage/minitest-rails/compare/v0.9.1...v0.9.2
6
+
1
7
  === 0.9.1 / 2013-03-18
2
8
 
3
9
  * Remove describe method
data/Manifest.txt CHANGED
@@ -14,6 +14,7 @@ gemfiles/3.2.gemfile
14
14
  gemfiles/3.2.gemfile.lock
15
15
  gemfiles/4.0.gemfile
16
16
  gemfiles/4.0.gemfile.lock
17
+ gemfiles/minitest_tu_shim.rb
17
18
  lib/autotest/discover.rb
18
19
  lib/autotest/fixtures.rb
19
20
  lib/autotest/migrate.rb
data/README.rdoc CHANGED
@@ -51,6 +51,10 @@ You can also set these as defaults by adding the following to the <tt>config/app
51
51
  g.test_framework :mini_test, :spec => true, :fixture => false
52
52
  end
53
53
 
54
+ == Running on Ruby 1.8
55
+
56
+ Efforts have been made to be compatible with Ruby 1.8.7, but some rough edges may remain. For the latest information on 1.8 compatibility see the wiki: https://github.com/blowmage/minitest-rails/wiki/Running-on-1.8
57
+
54
58
  == Capybara
55
59
 
56
60
  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
@@ -61,8 +65,6 @@ The 0.9 release marks a new direction for minitest-rails. Deprecations have been
61
65
 
62
66
  == Incompatibilities
63
67
 
64
- Efforts have been made to be compatible with Ruby 1.8.7, but some rough edges may remain. You have been warned.
65
-
66
68
  Existing tests that call <tt>describe</tt> will not work, since <tt>describe</tt> is used by <tt>MiniTest::Spec</tt> blocks.
67
69
 
68
70
  == Get Involved
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.9.1.20130318232905)
4
+ minitest-rails (0.9.2.20130405010332)
5
5
  minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
@@ -49,7 +49,7 @@ GEM
49
49
  i18n (>= 0.4.0)
50
50
  mime-types (~> 1.16)
51
51
  treetop (~> 1.4.8)
52
- mime-types (1.21)
52
+ mime-types (1.22)
53
53
  minitest (4.7.0)
54
54
  polyglot (0.3.3)
55
55
  rack (1.2.8)
@@ -71,7 +71,7 @@ GEM
71
71
  rake (>= 0.8.7)
72
72
  rdoc (~> 3.4)
73
73
  thor (~> 0.14.4)
74
- rake (10.0.3)
74
+ rake (10.0.4)
75
75
  rdoc (3.12.2)
76
76
  json (~> 1.4)
77
77
  thor (0.14.6)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.9.1.20130318232905)
4
+ minitest-rails (0.9.2.20130405010332)
5
5
  minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
@@ -49,9 +49,9 @@ GEM
49
49
  i18n (>= 0.4.0)
50
50
  mime-types (~> 1.16)
51
51
  treetop (~> 1.4.8)
52
- mime-types (1.21)
52
+ mime-types (1.22)
53
53
  minitest (4.7.0)
54
- multi_json (1.7.1)
54
+ multi_json (1.7.2)
55
55
  polyglot (0.3.3)
56
56
  rack (1.3.10)
57
57
  rack-cache (1.2)
@@ -77,7 +77,7 @@ GEM
77
77
  rake (>= 0.8.7)
78
78
  rdoc (~> 3.4)
79
79
  thor (~> 0.14.6)
80
- rake (10.0.3)
80
+ rake (10.0.4)
81
81
  rdoc (3.12.2)
82
82
  json (~> 1.4)
83
83
  sprockets (2.0.4)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.9.1.20130318232905)
4
+ minitest-rails (0.9.2.20130405010332)
5
5
  minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
@@ -49,9 +49,9 @@ GEM
49
49
  i18n (>= 0.4.0)
50
50
  mime-types (~> 1.16)
51
51
  treetop (~> 1.4.8)
52
- mime-types (1.21)
52
+ mime-types (1.22)
53
53
  minitest (4.7.0)
54
- multi_json (1.7.1)
54
+ multi_json (1.7.2)
55
55
  polyglot (0.3.3)
56
56
  rack (1.4.5)
57
57
  rack-cache (1.2)
@@ -75,7 +75,7 @@ GEM
75
75
  rake (>= 0.8.7)
76
76
  rdoc (~> 3.4)
77
77
  thor (>= 0.14.6, < 2.0)
78
- rake (10.0.3)
78
+ rake (10.0.4)
79
79
  rdoc (3.12.2)
80
80
  json (~> 1.4)
81
81
  sprockets (2.2.2)
@@ -83,7 +83,7 @@ GEM
83
83
  multi_json (~> 1.0)
84
84
  rack (~> 1.0)
85
85
  tilt (~> 1.1, != 1.3.0)
86
- thor (0.17.0)
86
+ thor (0.18.1)
87
87
  tilt (1.3.6)
88
88
  treetop (1.4.12)
89
89
  polyglot
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/blowmage/codez/minitest-rails
3
3
  specs:
4
- minitest-rails (0.9.1.20130318232905)
4
+ minitest-rails (0.9.2.20130405010332)
5
5
  minitest (~> 4.7)
6
6
  rails (>= 3.0)
7
7
 
@@ -33,7 +33,7 @@ GEM
33
33
  thread_safe (~> 0.1)
34
34
  tzinfo (~> 0.3.33)
35
35
  arel (4.0.0.beta2)
36
- atomic (1.0.1)
36
+ atomic (1.1.0)
37
37
  builder (3.1.4)
38
38
  erubis (2.7.0)
39
39
  fakefs (0.4.2)
@@ -46,9 +46,9 @@ GEM
46
46
  i18n (>= 0.4.0)
47
47
  mime-types (~> 1.16)
48
48
  treetop (~> 1.4.8)
49
- mime-types (1.21)
49
+ mime-types (1.22)
50
50
  minitest (4.7.0)
51
- multi_json (1.7.1)
51
+ multi_json (1.7.2)
52
52
  polyglot (0.3.3)
53
53
  rack (1.5.2)
54
54
  rack-test (0.6.2)
@@ -67,7 +67,7 @@ GEM
67
67
  rake (>= 0.8.7)
68
68
  rdoc (~> 3.4)
69
69
  thor (>= 0.17.0, < 2.0)
70
- rake (10.0.3)
70
+ rake (10.0.4)
71
71
  rdoc (3.12.2)
72
72
  json (~> 1.4)
73
73
  sprockets (2.9.0)
@@ -79,7 +79,7 @@ GEM
79
79
  actionpack (>= 3.0)
80
80
  activesupport (>= 3.0)
81
81
  sprockets (~> 2.8)
82
- thor (0.17.0)
82
+ thor (0.18.1)
83
83
  thread_safe (0.1.0)
84
84
  atomic
85
85
  tilt (1.3.6)
@@ -0,0 +1,4 @@
1
+ if RUBY_VERSION < "1.9"
2
+ `gem install minitest_tu_shim`
3
+ `use_minitest yes`
4
+ end
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Rails
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
@@ -95,6 +95,15 @@ class ActionDispatch::IntegrationTest
95
95
  register_spec_type(/(Integration|Acceptance)( ?Test)?\z/i, self)
96
96
  end
97
97
 
98
+ ################################################################################
99
+ # 1.8.7 Spec DSL Support
100
+ ################################################################################
101
+
102
+ if LoadError.const_defined? :REGEXPS
103
+ # Add relaxed regexp to allow whitespace so nested describes won't fail on 1.8.
104
+ LoadError::REGEXPS.unshift /^Missing \w+ (?:file\s*)?(.+\.rb)/i
105
+ end
106
+
98
107
  ################################################################################
99
108
  # Deprecated, for backwards compatibility with older minitest-rails only
100
109
  # Will be removed at version 1.0
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "minitest-rails"
5
- s.version = "0.9.1.20130318232905"
5
+ s.version = "0.9.2.20130405010332"
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-03-19"
9
+ s.date = "2013-04-05"
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_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"]
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", "gemfiles/minitest_tu_shim.rb", "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"]
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.1
5
+ version: 0.9.2
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-03-19 00:00:00.000000000 Z
12
+ date: 2013-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -117,6 +117,7 @@ files:
117
117
  - gemfiles/3.2.gemfile.lock
118
118
  - gemfiles/4.0.gemfile
119
119
  - gemfiles/4.0.gemfile.lock
120
+ - gemfiles/minitest_tu_shim.rb
120
121
  - lib/autotest/discover.rb
121
122
  - lib/autotest/fixtures.rb
122
123
  - lib/autotest/migrate.rb