Skip to content

Commit cbb94f5

Browse files
committed
Update specs to remove 1.8.7 incompatibility
1 parent b93595c commit cbb94f5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

spec/gon/gon_spec.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136

137137
end
138138

139-
if RUBY_VERSION > '1.9'
140139
require 'jbuilder'
141140
require 'gon/jbuilder'
142141

@@ -164,14 +163,7 @@
164163

165164
end
166165

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-
173166
it 'should raise error if you use gon.jbuilder without requiring jbuilder gem' do
174-
RUBY_VERSION = '1.9.2'
175167
Gon.send(:remove_const, :Jbuilder)
176168

177169
expect { Gon.jbuilder 'some_path' }.to raise_error(NoMethodError, /Gemfile/)
@@ -214,7 +206,6 @@
214206
end
215207
end
216208

217-
end
218209

219210
def request
220211
@request ||= double 'request', :env => {}

0 commit comments

Comments
 (0)