minitest_rails_tools 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ class MiniTest::Spec
2
+
3
+ require 'rails/test_help'
4
+
5
+ alias :method_name :__name__ if defined? :__name__
6
+
7
+ include Rails.application.routes.url_helpers
8
+ include ActiveSupport::Testing::SetupAndTeardown
9
+ include ActiveSupport::Testing::Assertions
10
+ include ActionController::TestCase::Behavior
11
+
12
+ end
@@ -25,9 +25,6 @@ class HelperExtension
25
25
 
26
26
  end
27
27
 
28
- # Allow to use url_helpers inside the tests.
29
- include Rails.application.routes.url_helpers
30
-
31
28
  def helper(name)
32
29
  HelperExtension.new(name)
33
30
  end
@@ -1,3 +1,4 @@
1
1
  require 'association_matchers'
2
2
  require 'validation_matchers'
3
3
  require 'helper_extension'
4
+ require 'application_integration'
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.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -21,6 +21,7 @@ files:
21
21
  - LICENSE
22
22
  - README.md
23
23
  - lib/minitest_rails_tools.rb
24
+ - lib/application_integration.rb
24
25
  - lib/helper_extension.rb
25
26
  - lib/association_matchers.rb
26
27
  - lib/validation_matchers.rb