Skip to content

Commit 8f42f3a

Browse files
committed
Fixed last specs
1 parent d13e829 commit 8f42f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/gon/gon_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
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
@@ -213,7 +213,7 @@
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

0 commit comments

Comments
 (0)