File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
### Development
2
2
[ full changelog] ( http://github.com/rspec/rspec-rails/compare/v2.14.0...master )
3
3
4
+ Bug fixes
5
+
6
+ * Fixes "warning: instance variable @orig \_ routes not initialized" raised by
7
+ controller specs when ` --warnings ` are enabled. (Andy Lindeman)
8
+
4
9
### 2.14.0 / 2013-07-06
5
10
[ full changelog] ( http://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0 )
6
11
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def bypass_rescue
135
135
def method_missing ( method , *args , &block )
136
136
if @routes && @routes . named_routes . helpers . include? ( method )
137
137
controller . send ( method , *args , &block )
138
- elsif @orig_routes && @orig_routes . named_routes . helpers . include? ( method )
138
+ elsif defined? ( @orig_routes ) && @orig_routes && @orig_routes . named_routes . helpers . include? ( method )
139
139
controller . send ( method , *args , &block )
140
140
else
141
141
super
You can’t perform that action at this time.
0 commit comments