Skip to content

Commit

Permalink
Merge pull request #497 from cucumber/fix/final-osx-build-failures
Browse files Browse the repository at this point in the history
Fix final OSX build failures
  • Loading branch information
maxmeyer authored Sep 16, 2017
2 parents 287376a + 89eaa56 commit 7aa51fc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ matrix:
- rvm: ruby-head
- rvm: jruby
- rvm: jruby-9.1.13.0
- rvm: 1.9.3
os: osx
- rvm: 2.0.0
os: osx
fast_finish: true
branches:
only:
Expand Down
13 changes: 2 additions & 11 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'pry'
require 'aruba/console'

require 'aruba/api'

module Aruba
class MyConsole
include Aruba::Api
end
end

include Aruba
Pry.start MyConsole.new
Aruba::Console.new.start
8 changes: 4 additions & 4 deletions features/02_configure_aruba/home_directory.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Feature: Configure the home directory to be used with aruba
end
"""
When I successfully run `cucumber`
Then the output should contain:
Then the output should match:
"""
The default value is "/home/
The default value is "/.*/tmp/aruba"
"""

Scenario: Set to current working directory
Expand Down Expand Up @@ -56,9 +56,9 @@ Feature: Configure the home directory to be used with aruba
end
"""
Then I successfully run `cucumber`
Then the output should contain:
Then the output should match:
"""
The default value is "/home/
The default value is "/.*/tmp/aruba"
"""

Scenario: Set to some other path (deprecated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Feature: Debug your command in cucumber-test-run
When I successfully run `cucumber`
Then the features should all pass

@requires-readline
Scenario: You can use a debug repl in your cli program

If you want to debug a strange error, which only occures in one of your
Expand Down
2 changes: 1 addition & 1 deletion features/07_development_of_aruba/run-aruba-console.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Running the interactive "aruba" developer console

Scenario: Running aruba interactively

This starts a pry console with "aruba"'s api loaded.
This starts an IRB console with "aruba"'s api loaded.

When I run `bin/console` interactively
And I type "exit"
Expand Down
12 changes: 12 additions & 0 deletions features/step_definitions/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@
end
end

Before '@requires-readline' do
begin
require 'readline'
rescue LoadError
if Cucumber::VERSION < '2'
skip_invoke!
else
skip_this_scenario
end
end
end

Before '@unsupported-on-platform-unix' do |scenario|
# leave if not windows
next unless FFI::Platform.unix?
Expand Down

0 comments on commit 7aa51fc

Please sign in to comment.