We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93595c commit cbb94f5Copy full SHA for cbb94f5
spec/gon/gon_spec.rb
@@ -136,7 +136,6 @@
136
137
end
138
139
- if RUBY_VERSION > '1.9'
140
require 'jbuilder'
141
require 'gon/jbuilder'
142
@@ -164,14 +163,7 @@
164
163
165
166
167
- it 'should throw error if you use gon.jbuilder with ruby < 1.9+' do
168
- RUBY_VERSION = '1.8.7'
169
-
170
- expect { Gon.jbuilder 'some_path'}.to raise_error(NoMethodError, /1.9/)
171
- end
172
173
it 'should raise error if you use gon.jbuilder without requiring jbuilder gem' do
174
- RUBY_VERSION = '1.9.2'
175
Gon.send(:remove_const, :Jbuilder)
176
177
expect { Gon.jbuilder 'some_path' }.to raise_error(NoMethodError, /Gemfile/)
@@ -214,7 +206,6 @@
214
206
215
207
216
208
217
218
209
219
210
def request
220
211
@request ||= double 'request', :env => {}
0 commit comments