minitest_rails_tools 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/application_integration.rb +6 -1
  2. metadata +1 -1
@@ -1,12 +1,17 @@
1
1
  class MiniTest::Spec
2
+ include Rails.application.routes.url_helpers
3
+ end
4
+
5
+ class ControllerSpec < MiniTest::Spec
2
6
 
3
7
  require 'rails/test_help'
4
8
 
5
9
  alias :method_name :__name__ if defined? :__name__
6
10
 
7
- include Rails.application.routes.url_helpers
8
11
  include ActiveSupport::Testing::SetupAndTeardown
9
12
  include ActiveSupport::Testing::Assertions
10
13
  include ActionController::TestCase::Behavior
11
14
 
12
15
  end
16
+ # Functional tests = describe ***Controller
17
+ MiniTest::Spec.register_spec_type( /Controller$/, ControllerSpec )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest_rails_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: