diff --git a/rubygem-aruba.spec b/rubygem-aruba.spec index 0d87bcd..6bcd058 100644 --- a/rubygem-aruba.spec +++ b/rubygem-aruba.spec @@ -18,14 +18,15 @@ BuildRequires: ruby BuildRequires: rubygem(cucumber) >= 1.3.19 BuildRequires: rubygem(childprocess) >= 0.5.6 BuildRequires: rubygem(ffi) >= 1.9.10 +BuildRequires: rubygem(minitest) +BuildRequires: rubygem(pry) BuildRequires: rubygem(rspec) >= 3 BuildRequires: rubygem(contracts) >= 0.9 BuildRequires: rubygem(thor) >= 0.19 -# For full %%check, the below is needed -# BuildRequires: rubygem(aruba-rspec) -# BuildRequires: rubygem(fuubar) -# used in one of the features -BuildRequires: bc +# features/steps/command/shell.feature:68 # Scenario: Running zsh commands +BuildRequires: /usr/bin/zsh +# features/steps/command/shell.feature:97 # Scenario: Running python commands +BuildRequires: /usr/bin/python3 BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} @@ -103,7 +104,30 @@ sed -i "/bundler/I s/^/#/" spec/spec_helper.rb RUBYOPT=-rtime rspec spec -cucumber || true +# We don't care about code coverage. +sed -i "/require 'simplecov'/ s/^/#/" features/support/env.rb +sed -i "/ENV\['RUBYOPT'\]/,/\send/ s/^/#/" features/support/env.rb +mv features/support/simplecov_setup.rb{,.disable} + +# Let the test cli-app find Aruba. +sed -i '/$LOAD_PATH/ s/\.\.\/\.\.\//\.\.\/\.\.\/\.\.\/\.\.\/\.\.\//' fixtures/cli-app/spec/spec_helper.rb + +# /usr/bin/python is reporting deprecation warning :/ +sed -i 's/python/python3/' features/steps/command/shell.feature +sed -i "s/'python'/'python3'/" features/step_definitions/hooks.rb +sed -i "s/\.]/.\\\d]/" lib/aruba/generators/script_file.rb +sed -i "/[^-]python/ s/python/python3/" features/getting_started/run_commands.feature + +# Get rid of Bundler +sed -i '/bundler/I s/^/#/' Rakefile + +# Adjust test cases referring to $HOME. +sed -i "s|/home/\[\^/\]+|$(echo $HOME)|" features/api/core/expand_path.feature +sed -i "/Scenario: Default value/,/Scenario/ s|/home/|$(echo $HOME)|" features/configuration/home_directory.feature +sed -i "/Scenario: Set to aruba's working directory/,/Scenario/ s|/home/|$(echo $HOME)/|" features/configuration/home_directory.feature + +# Make the Aruba always awailable. +RUBYOPT=-I$(pwd)/lib cucumber popd