File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 180180 RUBY_VERSION = '1.9.2'
181181 Gon . send ( :remove_const , :Jbuilder )
182182
183- expect { Gon . jbuilder 'some_path' } . to raise_error ( NoMethodError , /Gemfile/ )
183+ expect { Gon . jbuilder 'some_path' } . to raise_error ( NameError )
184184 load 'jbuilder.rb'
185185 load 'gon/jbuilder.rb'
186186 end
213213
214214 context 'the action doesn as a template at a different format' do
215215 it 'return the same template as the action with rabl extension' do
216- Gon . send ( :get_template_path , { :controller => controller } , 'jbuilder' ) . should eql ( 'app/views/action_controller/base/show.json.jbuilder' )
216+ Gon :: Base . send ( :get_template_path , { :controller => controller } , 'jbuilder' ) . should eql ( 'app/views/action_controller/base/show.json.jbuilder' )
217217 end
218218 end
219219
You can’t perform that action at this time.
0 commit comments