Skip to content

Commit

Permalink
Fix syntax to work with old rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Feb 2, 2018
1 parent 515cab7 commit 1f933b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/aruba/api/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def aruba
# This will only clean up aruba's working directory to remove all
# artifacts of your tests. This does NOT clean up the current working
# directory.
def setup_aruba(clobber: true)
Aruba::Setup.new(aruba).call(clobber: clobber)
def setup_aruba(clobber = true)
Aruba::Setup.new(aruba).call(clobber)

self
end
Expand Down
2 changes: 1 addition & 1 deletion lib/aruba/cucumber/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end

Before('@no-clobber') do
setup_aruba(clobber: false)
setup_aruba(false)
end

Before('~@no-clobber') do
Expand Down
6 changes: 3 additions & 3 deletions lib/aruba/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ def initialize(runtime)
@runtime = runtime
end

def call(clobber: true)
def call(clobber = true)
return if runtime.setup_already_done?

working_directory(clobber: clobber)
working_directory(clobber)
events

runtime.setup_done
Expand All @@ -23,7 +23,7 @@ def call(clobber: true)

private

def working_directory(clobber: true)
def working_directory(clobber = true)
if clobber
Aruba.platform.rm File.join(runtime.config.root_directory, runtime.config.working_directory), :force => true
end
Expand Down

0 comments on commit 1f933b0

Please sign in to comment.