spicycode-micronaut-rails 0.1.7.1 → 0.1.8.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -23,20 +23,20 @@ describe Micronaut::Rails::Configuration do
|
|
23
23
|
method_to_modules.each do |method, mod|
|
24
24
|
example "##{method} with no filter options" do
|
25
25
|
Micronaut.configuration.send(method)
|
26
|
-
Micronaut.configuration.
|
26
|
+
Micronaut.configuration.include_or_extend_modules.should include([:extend, mod, {}])
|
27
27
|
end
|
28
28
|
|
29
29
|
example "##{method} with filter options" do
|
30
30
|
filter_options = {:options => { "foo" => "bar" } }
|
31
31
|
Micronaut.configuration.send(method, filter_options)
|
32
|
-
Micronaut.configuration.
|
32
|
+
Micronaut.configuration.include_or_extend_modules.should include([:extend, mod, filter_options])
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
example "#enable_rails_specific_mocking_extensions for mocha with no filter options" do
|
37
37
|
Micronaut.configuration.mock_with :mocha
|
38
38
|
Micronaut.configuration.enable_rails_specific_mocking_extensions
|
39
|
-
Micronaut.configuration.
|
39
|
+
Micronaut.configuration.include_or_extend_modules.should include([:include, Micronaut::Rails::Mocking::WithMocha, {}])
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
@@ -81,14 +81,17 @@ module Micronaut
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def self.extended(kls)
|
84
|
+
Micronaut.configuration.trace { "In #{self} extended callback for #{kls}"}
|
85
|
+
|
84
86
|
kls.send(:include, ActionController::TestProcess)
|
85
87
|
kls.send(:include, InstanceMethods)
|
86
88
|
kls.send(:include, Micronaut::Rails::Matchers::Controllers)
|
87
89
|
|
88
90
|
kls.before do
|
91
|
+
@controller = self.class.describes.new
|
92
|
+
Micronaut.configuration.trace { "Enhancing #{@controller.inspect} with Rails controller extensions" }
|
89
93
|
@controller.class.send :include, RenderOverrides
|
90
94
|
@controller.class.send :include, ActionController::TestCase::RaiseActionExceptions
|
91
|
-
@controller = self.class.describes.new
|
92
95
|
@request = ActionController::TestRequest.new
|
93
96
|
@controller.request = @request
|
94
97
|
@response = ActionController::TestResponse.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spicycode-micronaut-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Humphries
|
@@ -9,7 +9,7 @@ autorequire: micronaut-rails
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-30 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 0.1.
|
31
|
+
version: 0.1.8
|
32
32
|
version:
|
33
33
|
description: An excellent replacement for the wheel...
|
34
34
|
email: chad@spicycode.com
|