Skip to content

Commit

Permalink
get cukes passing on JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 22, 2012
1 parent c7f66d7 commit be7e9b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Gemfile
@@ -1,10 +1,11 @@
source 'https://rubygems.org'

gem 'ronn'
gem 'ronn', :platform => :mri
gem 'aruba'
gem 'cucumber'
gem 'sinatra'
gem 'thin'
gem 'thin', :platform => :mri
gem 'json'
gem 'jruby-openssl', :platform => :jruby

gemspec
7 changes: 6 additions & 1 deletion features/support/env.rb
Expand Up @@ -40,7 +40,12 @@ def close_streams

FileUtils.mkdir_p ENV['HOME']

@aruba_io_wait_seconds = 0.02
if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
@aruba_timeout_seconds = 5
@aruba_io_wait_seconds = 0.1
else
@aruba_io_wait_seconds = 0.02
end
end

After do
Expand Down
2 changes: 1 addition & 1 deletion lib/hub.rb
@@ -1,4 +1,4 @@
require 'hub/version'
require 'hub/version' unless defined?(Hub::VERSION)
require 'hub/args'
require 'hub/ssh_config'
require 'hub/github_api'
Expand Down

0 comments on commit be7e9b5

Please sign in to comment.