Skip to content

Commit

Permalink
CI: Windows - Fixed ConfuringAruba\Basics.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrasimplicity authored and mvz committed Jan 21, 2023
1 parent 52f4add commit f898d0d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions features/02_configure_aruba/basics.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@requires-sleep @todo-improve-cross-platform-support
Feature: Usage of configuration

You can configure `aruba` in two ways:
Expand Down Expand Up @@ -33,12 +34,12 @@ Feature: Usage of configuration
RSpec.describe 'Run command', :type => :aruba do
context 'when fast command' do
before { run_command('aruba-test-cli 0') }
before { run_command('ruby ./aruba-test-cli 0') }
it { expect(last_command_started).to be_successfully_executed }
end
context 'when slow command' do
before { run_command('aruba-test-cli 1') }
before { run_command('ruby ./aruba-test-cli 1') }
it { expect(last_command_started).not_to be_successfully_executed }
end
end
Expand Down Expand Up @@ -74,17 +75,17 @@ Feature: Usage of configuration
RSpec.describe 'Run command', :type => :aruba do
context 'when fast command' do
before { run_command('aruba-test-cli 0') }
before { run_command('ruby ./aruba-test-cli 0') }
it { expect(last_command_started).to be_successfully_executed }
end
context 'when slow command and this is known by the developer', :slow_command => true do
before { run_command('aruba-test-cli 1') }
before { run_command('ruby ./aruba-test-cli 1') }
it { expect(last_command_started).to be_successfully_executed }
end
context 'when slow command, but this might be a failure' do
before { run_command('aruba-test-cli 1') }
before { run_command('ruby ./aruba-test-cli 1') }
it { expect(last_command_started).not_to be_successfully_executed }
end
end
Expand All @@ -103,11 +104,11 @@ Feature: Usage of configuration
"""
Feature: Run it
Scenario: Fast command
When I run `aruba-test-cli 0`
When I run `ruby ./aruba-test-cli 0`
Then the exit status should be 0
Scenario: Slow command
When I run `aruba-test-cli 1.0`
When I run `ruby ./aruba-test-cli 1.0`
Then the exit status should be 128
"""
When I run `cucumber`
Expand Down Expand Up @@ -135,16 +136,16 @@ Feature: Usage of configuration
"""
Feature: Run it
Scenario: Fast command
When I run `aruba-test-cli 0`
When I run `ruby ./aruba-test-cli 0`
Then the exit status should be 0
@slow-command
Scenario: Slow command known by the developer
When I run `aruba-test-cli 0.5`
When I run `ruby ./aruba-test-cli 0.5`
Then the exit status should be 0
Scenario: Slow command which might be a failure
When I run `aruba-test-cli 0.5`
When I run `ruby ./aruba-test-cli 0.5`
Then the exit status should be 128
"""
When I run `cucumber`
Expand Down

0 comments on commit f898d0d

Please sign in to comment.