lazy_named_routes_helpers 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@
2
2
  # modified: actionpack/lib/action_dispatch/routing/route_set.rb
3
3
  # modified: actionpack/lib/action_dispatch/assertions/routing.rb
4
4
  # modified: actionpack/lib/action_view/test_case.rb
5
+ # modified: actionpack/lib/action_dispatch/testing/integration.rb
5
6
 
6
7
  require 'action_dispatch/routing/route_set'
7
8
  module ActionDispatch
@@ -118,6 +119,19 @@ if Rails.env.test?
118
119
  end
119
120
  end
120
121
 
122
+ require 'action_dispatch/testing/integration'
123
+ module ActionDispatch
124
+ class IntegrationTest
125
+ def method_missing(selector, *args, &block)
126
+ if @integration_session._routes.named_routes.helper_method?(selector)
127
+ @integration_session.__send__(selector, *args, &block)
128
+ else
129
+ super
130
+ end
131
+ end
132
+ end
133
+ end
134
+
121
135
  require 'action_view/test_case'
122
136
  module ActionView
123
137
  class TestCase
@@ -130,4 +144,5 @@ if Rails.env.test?
130
144
  end
131
145
  end
132
146
  end
147
+
133
148
  end
@@ -1,3 +1,3 @@
1
1
  module LazyNamedRoutesHelpers
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_named_routes_helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-19 00:00:00 +01:00
18
+ date: 2012-02-20 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21