aruba 0.14.7 → 0.14.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/Gemfile +8 -0
  4. data/History.md +9 -0
  5. data/README.md +0 -1
  6. data/Rakefile +4 -3
  7. data/aruba.gemspec +1 -1
  8. data/features/api/command/find_command.feature +5 -5
  9. data/features/api/command/last_command_started.feature +3 -3
  10. data/features/api/command/last_command_stopped.feature +6 -6
  11. data/features/api/command/run.feature +22 -22
  12. data/features/api/command/run_simple.feature +12 -12
  13. data/features/api/command/send_signal.feature +2 -2
  14. data/features/api/command/stderr.feature +2 -2
  15. data/features/api/command/stdout.feature +2 -2
  16. data/features/api/command/stop.feature +4 -4
  17. data/features/api/command/stop_all_commands.feature +5 -5
  18. data/features/api/command/terminate_all_commands.feature +5 -5
  19. data/features/api/environment/append_environment_variable.feature +5 -5
  20. data/features/api/environment/delete_environment_variable.feature +3 -3
  21. data/features/api/environment/prepend_environment_variable.feature +6 -6
  22. data/features/api/environment/set_environment_variable.feature +15 -15
  23. data/features/api/filesystem/cd.feature +2 -2
  24. data/features/api/text/extract_text.feature +4 -4
  25. data/features/api/text/replace_variables.feature +1 -1
  26. data/features/api/text/sanitize_text.feature +11 -11
  27. data/features/api/text/unescape_text.feature +6 -6
  28. data/features/configuration/command_runtime_environment.feature +5 -5
  29. data/features/configuration/usage.feature +5 -5
  30. data/features/hooks/after/command.feature +1 -1
  31. data/features/hooks/before/command.feature +2 -2
  32. data/features/matchers/timeouts.feature +2 -2
  33. data/features/step_definitions/aruba_dev_steps.rb +1 -1
  34. data/lib/aruba/api.rb +1 -1
  35. data/lib/aruba/api/{command.rb → commands.rb} +10 -9
  36. data/lib/aruba/api/deprecated.rb +65 -7
  37. data/lib/aruba/api/rvm.rb +3 -3
  38. data/lib/aruba/basic_configuration.rb +0 -2
  39. data/lib/aruba/config.rb +0 -1
  40. data/lib/aruba/console.rb +0 -2
  41. data/lib/aruba/cucumber/command.rb +6 -6
  42. data/lib/aruba/generators/script_file.rb +1 -1
  43. data/lib/aruba/matchers/deprecated/file.rb +3 -1
  44. data/lib/aruba/platforms/command_monitor.rb +0 -5
  45. data/lib/aruba/platforms/unix_environment_variables.rb +1 -3
  46. data/lib/aruba/platforms/unix_which.rb +0 -4
  47. data/lib/aruba/platforms/windows_which.rb +0 -4
  48. data/lib/aruba/processes/basic_process.rb +1 -0
  49. data/lib/aruba/processes/spawn_process.rb +1 -3
  50. data/lib/aruba/runtime.rb +4 -3
  51. data/lib/aruba/version.rb +1 -1
  52. data/spec/aruba/api/deprecated_spec.rb +5 -5
  53. data/spec/aruba/api_spec.rb +7 -7
  54. data/spec/aruba/matchers/command_spec.rb +18 -18
  55. data/spec/aruba/matchers/deprecated_spec.rb +1 -2
  56. data/spec/aruba/matchers/file_spec.rb +1 -2
  57. data/spec/event_bus_spec.rb +0 -2
  58. metadata +6 -6
@@ -18,7 +18,7 @@ Feature: Access STDOUT of command
18
18
  require 'spec_helper'
19
19
 
20
20
  RSpec.describe 'Run command', :type => :aruba do
21
- before(:each) { run('cli') }
21
+ before(:each) { run_command('cli') }
22
22
  before(:each) { stop_all_commands }
23
23
  it { expect(last_command_started.stdout).to start_with 'Hello' }
24
24
  end
@@ -38,7 +38,7 @@ Feature: Access STDOUT of command
38
38
  require 'spec_helper'
39
39
 
40
40
  RSpec.describe 'Run command', :type => :aruba, :io_wait_timeout => 2 do
41
- before(:each) { run('cli') }
41
+ before(:each) { run_command('cli') }
42
42
  it { expect(last_command_started.stdout).to start_with 'Hello' }
43
43
  end
44
44
  """
@@ -28,7 +28,7 @@ Feature: Stop command
28
28
  require 'spec_helper'
29
29
 
30
30
  RSpec.describe 'Run command', :type => :aruba do
31
- before(:each) { run('cli') }
31
+ before(:each) { run_command('cli') }
32
32
  before(:each) { last_command_started.stop }
33
33
  it { expect(last_command_started).to be_successfully_executed }
34
34
  end
@@ -52,7 +52,7 @@ Feature: Stop command
52
52
  require 'spec_helper'
53
53
 
54
54
  RSpec.describe 'Run command', :type => :aruba do
55
- before(:each) { run('cli') }
55
+ before(:each) { run_command('cli') }
56
56
  before(:each) { find_command('cli').stop }
57
57
  it { expect(last_command_started).to be_successfully_executed }
58
58
  end
@@ -88,7 +88,7 @@ Feature: Stop command
88
88
  end
89
89
 
90
90
  RSpec.describe 'Run command', :type => :aruba do
91
- before(:each) { run('cli') }
91
+ before(:each) { run_command('cli') }
92
92
  it { expect(last_command_started).to be_successfully_executed }
93
93
  end
94
94
  """
@@ -123,7 +123,7 @@ Feature: Stop command
123
123
  end
124
124
 
125
125
  RSpec.describe 'Run command', :type => :aruba do
126
- before(:each) { run('cli') }
126
+ before(:each) { run_command('cli') }
127
127
  it { expect(last_command_started).to have_exit_status 2 }
128
128
  end
129
129
  """
@@ -16,8 +16,8 @@ Feature: Stop all commands
16
16
  require 'spec_helper'
17
17
 
18
18
  RSpec.describe 'Run command', :type => :aruba, :exit_timeout => 5 do
19
- before(:each) { run('cli') }
20
- before(:each) { run('cli') }
19
+ before(:each) { run_command('cli') }
20
+ before(:each) { run_command('cli') }
21
21
 
22
22
  before(:each) { stop_all_commands }
23
23
 
@@ -38,9 +38,9 @@ Feature: Stop all commands
38
38
  require 'spec_helper'
39
39
 
40
40
  RSpec.describe 'Run command', :type => :aruba, :exit_timeout => 2 do
41
- before(:each) { @cmd1 = run('cli') }
42
- before(:each) { @cmd2 = run('cli') }
43
- before(:each) { @cmd3 = run('sleep 1') }
41
+ before(:each) { @cmd1 = run_command('cli') }
42
+ before(:each) { @cmd2 = run_command('cli') }
43
+ before(:each) { @cmd3 = run_command('sleep 1') }
44
44
 
45
45
  before(:each) { stop_all_commands { |c| c.commandline == 'cli' } }
46
46
 
@@ -16,8 +16,8 @@ Feature: Terminate all commands
16
16
  require 'spec_helper'
17
17
 
18
18
  RSpec.describe 'Run command', :type => :aruba, :exit_timeout => 5 do
19
- before(:each) { run('cli') }
20
- before(:each) { run('cli') }
19
+ before(:each) { run_command('cli') }
20
+ before(:each) { run_command('cli') }
21
21
 
22
22
  before(:each) { terminate_all_commands }
23
23
 
@@ -38,9 +38,9 @@ Feature: Terminate all commands
38
38
  require 'spec_helper'
39
39
 
40
40
  RSpec.describe 'Run command', :type => :aruba, :exit_timeout => 2 do
41
- before(:each) { @cmd1 = run('cli') }
42
- before(:each) { @cmd2 = run('cli') }
43
- before(:each) { @cmd3 = run('sleep 1') }
41
+ before(:each) { @cmd1 = run_command('cli') }
42
+ before(:each) { @cmd2 = run_command('cli') }
43
+ before(:each) { @cmd3 = run_command('sleep 1') }
44
44
 
45
45
  before(:each) { terminate_all_commands { |c| c.commandline == 'cli' } }
46
46
 
@@ -21,7 +21,7 @@ Feature: Append environment variable
21
21
  RSpec.describe 'Long running command', :type => :aruba do
22
22
  before(:each) { append_environment_variable 'LONG_LONG_VARIABLE', 'a' }
23
23
 
24
- before(:each) { run('env') }
24
+ before(:each) { run_command('env') }
25
25
  before(:each) { stop_all_commands }
26
26
 
27
27
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=a' }
@@ -39,7 +39,7 @@ Feature: Append environment variable
39
39
  before(:each) { append_environment_variable 'LONG_LONG_VARIABLE', 'a' }
40
40
  before(:each) { append_environment_variable 'LONG_LONG_VARIABLE', 'b' }
41
41
 
42
- before(:each) { run('env') }
42
+ before(:each) { run_command('env') }
43
43
  before(:each) { stop_all_commands }
44
44
 
45
45
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=ab' }
@@ -59,7 +59,7 @@ Feature: Append environment variable
59
59
  RSpec.describe 'Long running command', :type => :aruba do
60
60
  before(:each) { append_environment_variable 'REALLY_LONG_LONG_VARIABLE', 'b' }
61
61
 
62
- before(:each) { run('env') }
62
+ before(:each) { run_command('env') }
63
63
  before(:each) { stop_all_commands }
64
64
 
65
65
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=ab' }
@@ -81,7 +81,7 @@ Feature: Append environment variable
81
81
  RSpec.describe 'Long running command', :type => :aruba do
82
82
  before(:each) { append_environment_variable 'REALLY_LONG_LONG_VARIABLE', 'b' }
83
83
 
84
- before(:each) { run('env') }
84
+ before(:each) { run_command('env') }
85
85
  before(:each) { stop_all_commands }
86
86
 
87
87
  it do
@@ -111,7 +111,7 @@ Feature: Append environment variable
111
111
  RSpec.describe 'Long running command', :type => :aruba do
112
112
  before(:each) { append_environment_variable 'REALLY_LONG_LONG_VARIABLE', 'b' }
113
113
 
114
- before(:each) { run('env') }
114
+ before(:each) { run_command('env') }
115
115
  before(:each) { stop_all_commands }
116
116
 
117
117
  it do
@@ -15,7 +15,7 @@ Feature: Delete existing environment variable via API-method
15
15
  RSpec.describe 'Long running command', :type => :aruba do
16
16
  before(:each) { delete_environment_variable 'LONG_LONG_VARIABLE' }
17
17
 
18
- before(:each) { run('env') }
18
+ before(:each) { run_command('env') }
19
19
  before(:each) { stop_all_commands }
20
20
 
21
21
  it { expect(last_command_started.output).not_to include 'LONG_LONG_VARIABLE=1' }
@@ -33,7 +33,7 @@ Feature: Delete existing environment variable via API-method
33
33
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '1' }
34
34
  before(:each) { delete_environment_variable 'LONG_LONG_VARIABLE' }
35
35
 
36
- before(:each) { run('env') }
36
+ before(:each) { run_command('env') }
37
37
  before(:each) { stop_all_commands }
38
38
 
39
39
  it { expect(last_command_started.output).not_to include 'LONG_LONG_VARIABLE' }
@@ -53,7 +53,7 @@ Feature: Delete existing environment variable via API-method
53
53
  RSpec.describe 'Environment command', :type => :aruba do
54
54
  before(:each) { delete_environment_variable 'REALLY_LONG_LONG_VARIABLE' }
55
55
 
56
- before(:each) { run('env') }
56
+ before(:each) { run_command('env') }
57
57
  before(:each) { stop_all_commands }
58
58
 
59
59
  it { expect(last_command_started.output).not_to include 'REALLY_LONG_LONG_VARIABLE' }
@@ -8,7 +8,7 @@ Feature: Prepend environment variable
8
8
 
9
9
  Each variable name and each value is converted to a string. Otherwise `ruby`
10
10
  would complain about an invalid argument. To make use of a variable you can
11
- either use `#run` and the like or `#with_environment`.
11
+ either use `#run_command` and the like or `#with_environment`.
12
12
 
13
13
  Background:
14
14
  Given I use the fixture "cli-app"
@@ -21,7 +21,7 @@ Feature: Prepend environment variable
21
21
  RSpec.describe 'Long running command', :type => :aruba do
22
22
  before(:each) { prepend_environment_variable 'LONG_LONG_VARIABLE', 'a' }
23
23
 
24
- before(:each) { run('env') }
24
+ before(:each) { run_command('env') }
25
25
  before(:each) { stop_all_commands }
26
26
 
27
27
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=a' }
@@ -39,7 +39,7 @@ Feature: Prepend environment variable
39
39
  before(:each) { prepend_environment_variable 'LONG_LONG_VARIABLE', 'a' }
40
40
  before(:each) { prepend_environment_variable 'LONG_LONG_VARIABLE', 'b' }
41
41
 
42
- before(:each) { run('env') }
42
+ before(:each) { run_command('env') }
43
43
  before(:each) { stop_all_commands }
44
44
 
45
45
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=ba' }
@@ -59,7 +59,7 @@ Feature: Prepend environment variable
59
59
  RSpec.describe 'Long running command', :type => :aruba do
60
60
  before(:each) { prepend_environment_variable 'REALLY_LONG_LONG_VARIABLE', 'b' }
61
61
 
62
- before(:each) { run('env') }
62
+ before(:each) { run_command('env') }
63
63
  before(:each) { stop_all_commands }
64
64
 
65
65
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=ba' }
@@ -81,7 +81,7 @@ Feature: Prepend environment variable
81
81
  RSpec.describe 'Long running command', :type => :aruba do
82
82
  before(:each) { prepend_environment_variable 'REALLY_LONG_LONG_VARIABLE', 'b' }
83
83
 
84
- before(:each) { run('env') }
84
+ before(:each) { run_command('env') }
85
85
  before(:each) { stop_all_commands }
86
86
 
87
87
  it do
@@ -111,7 +111,7 @@ Feature: Prepend environment variable
111
111
  RSpec.describe 'Long running command', :type => :aruba do
112
112
  before(:each) { prepend_environment_variable 'REALLY_LONG_LONG_VARIABLE', 'b' }
113
113
 
114
- before(:each) { run('env') }
114
+ before(:each) { run_command('env') }
115
115
  before(:each) { stop_all_commands }
116
116
 
117
117
  it do
@@ -20,7 +20,7 @@ Feature: Set environment variable via API-method
20
20
  RSpec.describe 'Environment command', :type => :aruba do
21
21
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '1' }
22
22
 
23
- before(:each) { run('env') }
23
+ before(:each) { run_command('env') }
24
24
  before(:each) { stop_all_commands }
25
25
 
26
26
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=1' }
@@ -38,7 +38,7 @@ Feature: Set environment variable via API-method
38
38
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '1' }
39
39
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '2' }
40
40
 
41
- before(:each) { run('env') }
41
+ before(:each) { run_command('env') }
42
42
  before(:each) { stop_all_commands }
43
43
 
44
44
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=2' }
@@ -59,7 +59,7 @@ Feature: Set environment variable via API-method
59
59
  RSpec.describe 'Environment command', :type => :aruba do
60
60
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
61
61
 
62
- before(:each) { run('env') }
62
+ before(:each) { run_command('env') }
63
63
  before(:each) { stop_all_commands }
64
64
 
65
65
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=2' }
@@ -78,7 +78,7 @@ Feature: Set environment variable via API-method
78
78
  RSpec.describe 'Environment command', :type => :aruba do
79
79
  before(:each) { ENV['REALLY_LONG_LONG_VARIABLE'] = '2' }
80
80
 
81
- before(:each) { run('env') }
81
+ before(:each) { run_command('env') }
82
82
  before(:each) { stop_all_commands }
83
83
 
84
84
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=2' }
@@ -100,7 +100,7 @@ Feature: Set environment variable via API-method
100
100
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '1' }
101
101
  before(:each) { ENV['REALLY_LONG_LONG_VARIABLE'] = '2' }
102
102
 
103
- before(:each) { run('env') }
103
+ before(:each) { run_command('env') }
104
104
  before(:each) { stop_all_commands }
105
105
 
106
106
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
@@ -123,7 +123,7 @@ Feature: Set environment variable via API-method
123
123
  RSpec.describe 'Environment command', :type => :aruba do
124
124
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
125
125
 
126
- before(:each) { run('env') }
126
+ before(:each) { run_command('env') }
127
127
  before(:each) { stop_all_commands }
128
128
 
129
129
  it do
@@ -153,7 +153,7 @@ Feature: Set environment variable via API-method
153
153
  RSpec.describe 'Environment command', :type => :aruba do
154
154
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
155
155
 
156
- before(:each) { run('env') }
156
+ before(:each) { run_command('env') }
157
157
  before(:each) { stop_all_commands }
158
158
 
159
159
  it do
@@ -181,7 +181,7 @@ Feature: Set environment variable via API-method
181
181
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '1' }
182
182
 
183
183
  describe 'Method XX' do
184
- before(:each) { run('env') }
184
+ before(:each) { run_command('env') }
185
185
  before(:each) { stop_all_commands }
186
186
 
187
187
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=1' }
@@ -190,7 +190,7 @@ Feature: Set environment variable via API-method
190
190
  describe 'Method YY' do
191
191
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '2' }
192
192
 
193
- before(:each) { run('env') }
193
+ before(:each) { run_command('env') }
194
194
  before(:each) { stop_all_commands }
195
195
 
196
196
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=2' }
@@ -210,7 +210,7 @@ Feature: Set environment variable via API-method
210
210
  RSpec.describe 'Environment command', :type => :aruba do
211
211
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
212
212
 
213
- before(:each) { run('env') }
213
+ before(:each) { run_command('env') }
214
214
  before(:each) { stop_all_commands }
215
215
 
216
216
  it do
@@ -283,7 +283,7 @@ Feature: Set environment variable via API-method
283
283
 
284
284
  it { expect(ENV['REALLY_LONG_LONG_VARIABLE']).to eq '1' }
285
285
 
286
- before(:each) { run('env') }
286
+ before(:each) { run_command('env') }
287
287
  before(:each) { stop_all_commands }
288
288
 
289
289
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
@@ -298,7 +298,7 @@ Feature: Set environment variable via API-method
298
298
 
299
299
  it { expect(ENV['LONG_LONG_VARIABLE']).to eq '2' }
300
300
 
301
- before(:each) { run('env') }
301
+ before(:each) { run_command('env') }
302
302
  before(:each) { stop_all_commands }
303
303
 
304
304
  it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
@@ -317,7 +317,7 @@ Feature: Set environment variable via API-method
317
317
  RSpec.describe 'Environment command', :type => :aruba do
318
318
  before(:each) { set_environment_variable 'long_LONG_VARIABLE', '1' }
319
319
 
320
- before(:each) { run('env') }
320
+ before(:each) { run_command('env') }
321
321
  before(:each) { stop_all_commands }
322
322
 
323
323
  it { expect(last_command_started.output).to include 'long_LONG_VARIABLE=1' }
@@ -336,7 +336,7 @@ Feature: Set environment variable via API-method
336
336
  RSpec.describe 'Environment command', :type => :aruba do
337
337
  before(:each) { set_environment_variable 'long_LONG_VARIABLE', '1' }
338
338
 
339
- before(:each) { run('env') }
339
+ before(:each) { run_command('env') }
340
340
  before(:each) { stop_all_commands }
341
341
 
342
342
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=1' }
@@ -362,7 +362,7 @@ Feature: Set environment variable via API-method
362
362
  require 'my_library'
363
363
  end
364
364
 
365
- before(:each) { run('env') }
365
+ before(:each) { run_command('env') }
366
366
  before(:each) { stop_all_commands }
367
367
 
368
368
  it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=1' }
@@ -24,7 +24,7 @@ Feature: Change current working directory
24
24
  cd 'new_dir.d'
25
25
  end
26
26
 
27
- before(:each) { run_simple 'pwd' }
27
+ before(:each) { run_command_and_stop 'pwd' }
28
28
 
29
29
  it { expect(last_command_started.output).to include 'new_dir.d' }
30
30
  end
@@ -39,7 +39,7 @@ Feature: Change current working directory
39
39
 
40
40
  RSpec.describe 'cd to directory', :type => :aruba do
41
41
  before(:each) { cd 'new_dir.d' }
42
- before(:each) { run_simple 'pwd' }
42
+ before(:each) { run_command_and_stop 'pwd' }
43
43
 
44
44
  it { expect(last_command_started.output).to include 'new_dir.d' }
45
45
  it { expect(last_command_started).to be_executed_in_time }
@@ -17,7 +17,7 @@ Feature: Extract text from output
17
17
  require 'spec_helper'
18
18
 
19
19
  RSpec.describe 'Run command', :type => :aruba do
20
- before(:each) { run('cli') }
20
+ before(:each) { run_command('cli') }
21
21
  before(:each) { stop_all_commands }
22
22
 
23
23
  it { expect(extract_text(unescape_text(last_command.output))).to eq "Text" }
@@ -37,7 +37,7 @@ Feature: Extract text from output
37
37
  require 'spec_helper'
38
38
 
39
39
  RSpec.describe 'Run command', :type => :aruba do
40
- before(:each) { run('cli') }
40
+ before(:each) { run_command('cli') }
41
41
  before(:each) { stop_all_commands }
42
42
 
43
43
  it { expect(extract_text(unescape_text(last_command.output))).to eq "Text" }
@@ -57,7 +57,7 @@ Feature: Extract text from output
57
57
  # require 'spec_helper'
58
58
  #
59
59
  # RSpec.describe 'Run command', :type => :aruba do
60
- # before(:each) { run('cli') }
60
+ # before(:each) { run_command('cli') }
61
61
  # before(:each) { stop_all_commands }
62
62
  #
63
63
  # it { expect(extract_text(unescape_text(last_command.output))).to eq "Text" }
@@ -77,7 +77,7 @@ Feature: Extract text from output
77
77
  # require 'spec_helper'
78
78
  #
79
79
  # RSpec.describe 'Run command', :type => :aruba do
80
- # before(:each) { run('cli') }
80
+ # before(:each) { run_command('cli') }
81
81
  # before(:each) { stop_all_commands }
82
82
  #
83
83
  # it { expect(extract_text(unescape_text(last_command.output))).to eq "Text" }
@@ -22,7 +22,7 @@ Feature: Replace variables
22
22
  require 'spec_helper'
23
23
 
24
24
  RSpec.describe 'Run command', :type => :aruba do
25
- before(:each) { run('cli') }
25
+ before(:each) { run_command('cli') }
26
26
  before(:each) { stop_all_commands }
27
27
 
28
28
  it { expect(replace_variables('<pid-last-command-started>')).to eq last_command_started.pid.to_s }
@@ -18,7 +18,7 @@ Feature: Sanitize text from output
18
18
  require 'spec_helper'
19
19
 
20
20
  RSpec.describe 'Run command', :type => :aruba do
21
- before(:each) { run('cli') }
21
+ before(:each) { run_command('cli') }
22
22
  before(:each) { stop_all_commands }
23
23
 
24
24
  it { expect(sanitize_text(last_command_started.output)).to eq "text\ntext" }
@@ -38,7 +38,7 @@ Feature: Sanitize text from output
38
38
  require 'spec_helper'
39
39
 
40
40
  RSpec.describe 'Run command', :type => :aruba do
41
- before(:each) { run('cli') }
41
+ before(:each) { run_command('cli') }
42
42
  before(:each) { stop_all_commands }
43
43
 
44
44
  it { expect(sanitize_text(last_command_started.output)).to eq "texttext" }
@@ -58,7 +58,7 @@ Feature: Sanitize text from output
58
58
  require 'spec_helper'
59
59
 
60
60
  RSpec.describe 'Run command', :type => :aruba do
61
- before(:each) { run('cli') }
61
+ before(:each) { run_command('cli') }
62
62
  before(:each) { stop_all_commands }
63
63
 
64
64
  it { expect(sanitize_text(last_command_started.output)).to eq "text\"text" }
@@ -78,7 +78,7 @@ Feature: Sanitize text from output
78
78
  require 'spec_helper'
79
79
 
80
80
  RSpec.describe 'Run command', :type => :aruba do
81
- before(:each) { run('cli') }
81
+ before(:each) { run_command('cli') }
82
82
  before(:each) { stop_all_commands }
83
83
 
84
84
  it { expect(sanitize_text(last_command_started.output)).to eq "texttext" }
@@ -98,7 +98,7 @@ Feature: Sanitize text from output
98
98
  require 'spec_helper'
99
99
 
100
100
  RSpec.describe 'Run command', :type => :aruba do
101
- before(:each) { run('cli') }
101
+ before(:each) { run_command('cli') }
102
102
  before(:each) { stop_all_commands }
103
103
 
104
104
  it { expect(sanitize_text(last_command_started.output)).to eq "texttext" }
@@ -118,7 +118,7 @@ Feature: Sanitize text from output
118
118
  require 'spec_helper'
119
119
 
120
120
  RSpec.describe 'Run command', :type => :aruba do
121
- before(:each) { run('cli') }
121
+ before(:each) { run_command('cli') }
122
122
  before(:each) { stop_all_commands }
123
123
 
124
124
  it { expect(sanitize_text(last_command_started.output)).to eq "texttext" }
@@ -138,7 +138,7 @@ Feature: Sanitize text from output
138
138
  require 'spec_helper'
139
139
 
140
140
  RSpec.describe 'Run command', :type => :aruba do
141
- before(:each) { run('cli') }
141
+ before(:each) { run_command('cli') }
142
142
  before(:each) { stop_all_commands }
143
143
 
144
144
  it { expect(sanitize_text(last_command_started.output)).to eq "Text" }
@@ -158,7 +158,7 @@ Feature: Sanitize text from output
158
158
  require 'spec_helper'
159
159
 
160
160
  RSpec.describe 'Run command', :type => :aruba do
161
- before(:each) { run('cli') }
161
+ before(:each) { run_command('cli') }
162
162
  before(:each) { stop_all_commands }
163
163
 
164
164
  it { expect(sanitize_text(last_command_started.output)).to eq "Text" }
@@ -178,7 +178,7 @@ Feature: Sanitize text from output
178
178
  require 'spec_helper'
179
179
 
180
180
  RSpec.describe 'Run command', :type => :aruba, :remove_ansi_escape_sequences => false, :keep_ansi => true do
181
- before(:each) { run('cli') }
181
+ before(:each) { run_command('cli') }
182
182
  before(:each) { stop_all_commands }
183
183
 
184
184
  it { expect(sanitize_text(last_command_started.output)).to eq "\e[31mText" }
@@ -198,7 +198,7 @@ Feature: Sanitize text from output
198
198
  # require 'spec_helper'
199
199
  #
200
200
  # RSpec.describe 'Run command', :type => :aruba do
201
- # before(:each) { run('cli') }
201
+ # before(:each) { run_command('cli') }
202
202
  # before(:each) { stop_all_commands }
203
203
  #
204
204
  # it { expect(sanitize_text(last_command_started.output)).to eq "Text" }
@@ -218,7 +218,7 @@ Feature: Sanitize text from output
218
218
  # require 'spec_helper'
219
219
  #
220
220
  # RSpec.describe 'Run command', :type => :aruba do
221
- # before(:each) { run('cli') }
221
+ # before(:each) { run_command('cli') }
222
222
  # before(:each) { stop_all_commands }
223
223
  #
224
224
  # it { expect(sanitize_text(last_command_started.output)).to eq "Text" }