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.
- data/lib/application_integration.rb +6 -1
- 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 )
|