Skip to content

Commit

Permalink
fix the spec - on 9K the params include? compat.version assert won't …
Browse files Browse the repository at this point in the history
…pass
  • Loading branch information
kares committed Oct 12, 2015
1 parent e6cd341 commit 1001d03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/trinidad/web_app_spec.rb
Expand Up @@ -557,10 +557,10 @@

it "includes the ruby version as a parameter to load the jruby compatibility version" do
app = Trinidad::WebApp.create({})
app.init_params.should include('jruby.compat.version')
if JRUBY_VERSION.start_with?('9')
expect( app.init_params.key?('jruby.compat.version') ).to be false
if JRUBY_VERSION.start_with?('9') # not on 9K
expect( app.init_params ).to_not include('jruby.compat.version')
else
expect( app.init_params ).to include('jruby.compat.version')
require 'jruby';
if JRuby.runtime.respond_to?(:is2_0) && JRuby.runtime.is2_0
expect( app.init_params['jruby.compat.version'] ).to eql '2.0'
Expand Down

0 comments on commit 1001d03

Please sign in to comment.