aruba 0.9.0.pre → 0.9.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +8 -3
  3. data/History.md +61 -19
  4. data/README.md +10 -6
  5. data/TODO.md +6 -1
  6. data/cucumber.yml +10 -6
  7. data/features/.nav +72 -0
  8. data/features/announce.feature +203 -0
  9. data/features/api/command/extract_text.feature +10 -0
  10. data/features/api/command/run.feature +6 -6
  11. data/features/api/command/stop_all_commands.feature +53 -0
  12. data/features/api/command/terminate_all_commands.feature +53 -0
  13. data/features/api/command/unescape_text.feature +12 -0
  14. data/features/api/command/which.feature +3 -3
  15. data/features/api/core/expand_path.feature +4 -4
  16. data/features/api/environment/append_environment_variable.feature +18 -8
  17. data/features/api/environment/prepend_environment_variable.feature +18 -8
  18. data/features/api/environment/set_environment_variable.feature +33 -16
  19. data/features/api/filesystem/cd.feature +23 -13
  20. data/features/api/filesystem/create_directory.feature +2 -2
  21. data/features/api/filesystem/disk_usage.feature +7 -6
  22. data/features/api/filesystem/does_exist.feature +2 -2
  23. data/features/api/filesystem/is_absolute.feature +2 -2
  24. data/features/api/filesystem/is_directory.feature +2 -2
  25. data/features/api/filesystem/is_file.feature +2 -2
  26. data/features/api/filesystem/is_relative.feature +2 -2
  27. data/features/api/filesystem/move.feature +119 -0
  28. data/features/cli/console.feature +3 -3
  29. data/features/commands/debug_command.feature +93 -0
  30. data/features/commands/environment_variables.feature +64 -0
  31. data/features/commands/flushing.feature +74 -0
  32. data/features/commands/interactive.feature +90 -0
  33. data/features/commands/output/all_output.feature +445 -0
  34. data/features/commands/output/stdout.feature +66 -0
  35. data/features/configuration/exit_timeout.feature +5 -5
  36. data/features/configuration/fixtures_directories.feature +3 -3
  37. data/features/configuration/fixtures_path_prefix.feature +1 -1
  38. data/features/configuration/home_directory.feature +4 -4
  39. data/features/configuration/io_timeout.feature +2 -2
  40. data/features/configuration/keep_ansi.feature +2 -2
  41. data/features/configuration/log_level.feature +3 -3
  42. data/features/configuration/physical_block_size.feature +3 -3
  43. data/features/configuration/usage.feature +159 -0
  44. data/features/core/cleanup_aruba_directory.feature +52 -0
  45. data/features/development/build.feature +16 -0
  46. data/features/development/test.feature +24 -0
  47. data/features/file_system_commands.feature +12 -12
  48. data/features/getting_started/supported_programming_languages.feature +89 -0
  49. data/features/hooks/after/command.feature +1 -1
  50. data/features/hooks/before/command.feature +2 -2
  51. data/features/matchers/collection/include_an_object.feature +72 -0
  52. data/features/matchers/timeouts.feature +2 -2
  53. data/features/output.feature +60 -181
  54. data/features/step_definitions/aruba_dev_steps.rb +17 -10
  55. data/features/step_definitions/hooks.rb +11 -0
  56. data/features/steps/commands/exit_statuses.feature +3 -3
  57. data/features/steps/commands/run.feature +0 -15
  58. data/features/steps/filesystem/copy.feature +45 -0
  59. data/features/steps/filesystem/create_directory.feature +47 -0
  60. data/features/steps/filesystem/create_file.feature +53 -0
  61. data/features/steps/filesystem/file_content.feature +1 -1
  62. data/features/steps/filesystem/move.feature +45 -0
  63. data/features/steps/filesystem/overwrite_file.feature +72 -0
  64. data/features/steps/filesystem/use_fixture.feature +77 -0
  65. data/features/usage/install.feature +8 -0
  66. data/{features/fixtures → fixtures}/cli-app/.gitignore +0 -0
  67. data/{features/fixtures → fixtures}/cli-app/.rspec +0 -0
  68. data/{features/fixtures → fixtures}/cli-app/README.md +0 -0
  69. data/{features/fixtures → fixtures}/cli-app/Rakefile +0 -0
  70. data/{features/fixtures → fixtures}/cli-app/bin/cli +0 -0
  71. data/{features/fixtures → fixtures}/cli-app/cli-app.gemspec +0 -0
  72. data/{features/fixtures → fixtures}/cli-app/features/support/env.rb +0 -0
  73. data/{features/fixtures → fixtures}/cli-app/lib/cli/app.rb +0 -0
  74. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +15 -0
  75. data/{features/fixtures → fixtures}/cli-app/lib/cli/app/version.rb +0 -0
  76. data/{features/fixtures/empty-app → fixtures/cli-app}/script/console +3 -3
  77. data/{features/fixtures → fixtures}/cli-app/spec/spec_helper.rb +0 -0
  78. data/{features/fixtures → fixtures}/cli-app/spec/support/aruba.rb +0 -0
  79. data/{features/fixtures → fixtures}/copy/file.txt +0 -0
  80. data/{features/fixtures → fixtures}/empty-app/.gitignore +0 -0
  81. data/{features/fixtures → fixtures}/empty-app/.rspec +0 -0
  82. data/{features/fixtures → fixtures}/empty-app/README.md +0 -0
  83. data/{features/fixtures → fixtures}/empty-app/Rakefile +0 -0
  84. data/{features/fixtures → fixtures}/empty-app/bin/cli +0 -0
  85. data/{features/fixtures → fixtures}/empty-app/cli-app.gemspec +0 -0
  86. data/{features/fixtures → fixtures}/empty-app/lib/cli/app.rb +0 -0
  87. data/{features/fixtures → fixtures}/empty-app/lib/cli/app/version.rb +0 -0
  88. data/{features/fixtures/cli-app → fixtures/empty-app}/script/console +3 -3
  89. data/{features/fixtures → fixtures}/empty-app/spec/spec_helper.rb +0 -0
  90. data/{features/fixtures → fixtures}/fixtures-app/test.txt +0 -0
  91. data/fixtures/getting-started-app/.gitignore +4 -0
  92. data/fixtures/getting-started-app/Gemfile +4 -0
  93. data/fixtures/getting-started-app/README.md +3 -0
  94. data/fixtures/getting-started-app/features/support/env.rb +1 -0
  95. data/{features/fixtures → fixtures}/spawn_process/stderr.sh +0 -0
  96. data/lib/aruba/announcer.rb +6 -2
  97. data/lib/aruba/api.rb +0 -16
  98. data/lib/aruba/api/command.rb +64 -266
  99. data/lib/aruba/api/core.rb +24 -26
  100. data/lib/aruba/api/deprecated.rb +370 -12
  101. data/lib/aruba/api/filesystem.rb +64 -15
  102. data/lib/aruba/aruba_path.rb +4 -0
  103. data/lib/aruba/config.rb +1 -1
  104. data/lib/aruba/cucumber.rb +5 -449
  105. data/lib/aruba/cucumber/command.rb +378 -0
  106. data/lib/aruba/cucumber/core.rb +29 -0
  107. data/lib/aruba/cucumber/environment.rb +30 -0
  108. data/lib/aruba/cucumber/file.rb +210 -0
  109. data/lib/aruba/cucumber/hooks.rb +11 -14
  110. data/lib/aruba/cucumber/rvm.rb +3 -0
  111. data/lib/aruba/matchers/base/base_matcher.rb +94 -0
  112. data/lib/aruba/matchers/collection.rb +1 -0
  113. data/lib/aruba/matchers/collection/all_objects.rb +2 -0
  114. data/lib/aruba/matchers/collection/include_an_object.rb +120 -0
  115. data/lib/aruba/matchers/command/be_successfully_executed.rb +3 -3
  116. data/lib/aruba/matchers/command/have_exit_status.rb +2 -11
  117. data/lib/aruba/matchers/command/have_finished_in_time.rb +5 -5
  118. data/lib/aruba/matchers/command/have_output.rb +46 -0
  119. data/lib/aruba/matchers/command/have_output_on_stderr.rb +42 -0
  120. data/lib/aruba/matchers/command/have_output_on_stdout.rb +42 -0
  121. data/lib/aruba/matchers/command/have_output_size.rb +28 -0
  122. data/lib/aruba/matchers/directory/be_an_existing_directory.rb +1 -1
  123. data/lib/aruba/matchers/file/be_an_existing_file.rb +1 -1
  124. data/lib/aruba/matchers/file/have_file_content.rb +1 -1
  125. data/lib/aruba/matchers/file/have_file_size.rb +2 -2
  126. data/lib/aruba/matchers/file/have_same_file_content.rb +1 -1
  127. data/lib/aruba/matchers/path/have_permissions.rb +1 -1
  128. data/lib/aruba/platforms/aruba_file_creator.rb +2 -3
  129. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +2 -3
  130. data/lib/aruba/platforms/determine_disk_usage.rb +23 -0
  131. data/lib/aruba/platforms/determine_file_size.rb +13 -0
  132. data/lib/aruba/platforms/disk_usage_calculator.rb +11 -0
  133. data/lib/aruba/platforms/local_environment.rb +15 -0
  134. data/lib/aruba/platforms/unix_environment_variables.rb +1 -1
  135. data/lib/aruba/platforms/unix_platform.rb +35 -14
  136. data/lib/aruba/process_monitor.rb +53 -7
  137. data/lib/aruba/processes/basic_process.rb +25 -5
  138. data/lib/aruba/processes/debug_process.rb +27 -25
  139. data/lib/aruba/processes/in_process.rb +7 -22
  140. data/lib/aruba/processes/spawn_process.rb +74 -31
  141. data/lib/aruba/rspec.rb +1 -6
  142. data/lib/aruba/version.rb +1 -1
  143. data/script/console +0 -1
  144. data/spec/aruba/api/environment/restore_env_spec.rb +65 -0
  145. data/spec/aruba/api/environment/set_env_spec.rb +42 -0
  146. data/spec/aruba/api/filesystem/file_size_spec.rb +28 -0
  147. data/spec/aruba/api_spec.rb +10 -7
  148. data/spec/aruba/matchers/command/have_output_size_spec.rb +25 -0
  149. data/spec/aruba/matchers/command_spec.rb +135 -4
  150. data/spec/aruba/spawn_process_spec.rb +1 -1
  151. metadata +107 -65
  152. data/.nav +0 -12
  153. data/features/debug.feature +0 -15
  154. data/features/fixtures/cli-app/spec/cli/app_spec.rb +0 -7
  155. data/features/flushing.feature +0 -26
  156. data/features/interactive.feature +0 -66
  157. data/features/no_clobber.feature +0 -25
  158. data/lib/aruba/disk_usage_calculator.rb +0 -7
@@ -14,14 +14,16 @@ Feature: Set environment variable via API-method
14
14
 
15
15
  Scenario: Non-existing variable
16
16
  Given a file named "spec/environment_spec.rb" with:
17
- """
17
+ """ruby
18
18
  require 'spec_helper'
19
19
 
20
20
  RSpec.describe 'Long running command', :type => :aruba do
21
21
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '1' }
22
+
22
23
  before(:each) { run('env') }
24
+ before(:each) { stop_all_commands }
23
25
 
24
- it { expect(last_command.output).to include 'LONG_LONG_VARIABLE=1' }
26
+ it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=1' }
25
27
  end
26
28
  """
27
29
  When I run `rspec`
@@ -29,15 +31,17 @@ Feature: Set environment variable via API-method
29
31
 
30
32
  Scenario: Existing variable set from within the test
31
33
  Given a file named "spec/environment_spec.rb" with:
32
- """
34
+ """ruby
33
35
  require 'spec_helper'
34
36
 
35
37
  RSpec.describe 'Long running command', :type => :aruba do
36
38
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '1' }
37
39
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '2' }
40
+
38
41
  before(:each) { run('env') }
42
+ before(:each) { stop_all_commands }
39
43
 
40
- it { expect(last_command.output).to include 'LONG_LONG_VARIABLE=2' }
44
+ it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=2' }
41
45
  end
42
46
  """
43
47
  When I run `rspec`
@@ -47,16 +51,18 @@ Feature: Set environment variable via API-method
47
51
  Scenario: Existing variable set by some outer parent process
48
52
 
49
53
  Given a file named "spec/environment_spec.rb" with:
50
- """
54
+ """ruby
51
55
  require 'spec_helper'
52
56
 
53
57
  ENV['REALLY_LONG_LONG_VARIABLE'] = '1'
54
58
 
55
59
  RSpec.describe 'Long running command', :type => :aruba do
56
60
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
61
+
57
62
  before(:each) { run('env') }
63
+ before(:each) { stop_all_commands }
58
64
 
59
- it { expect(last_command.output).to include 'REALLY_LONG_LONG_VARIABLE=2' }
65
+ it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=2' }
60
66
  it { expect(ENV['REALLY_LONG_LONG_VARIABLE']).to eq '1' }
61
67
  end
62
68
  """
@@ -69,14 +75,16 @@ Feature: Set environment variable via API-method
69
75
  avaiable for the code run within the block.
70
76
 
71
77
  Given a file named "spec/environment_spec.rb" with:
72
- """
78
+ """ruby
73
79
  require 'spec_helper'
74
80
 
75
81
  ENV['REALLY_LONG_LONG_VARIABLE'] = '1'
76
82
 
77
83
  RSpec.describe 'Long running command', :type => :aruba do
78
84
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
85
+
79
86
  before(:each) { run('env') }
87
+ before(:each) { stop_all_commands }
80
88
 
81
89
  it do
82
90
  with_environment do
@@ -97,14 +105,16 @@ Feature: Set environment variable via API-method
97
105
  Pass it an `Hash` containing the environment variables.
98
106
 
99
107
  Given a file named "spec/environment_spec.rb" with:
100
- """
108
+ """ruby
101
109
  require 'spec_helper'
102
110
 
103
111
  ENV['REALLY_LONG_LONG_VARIABLE'] = '1'
104
112
 
105
113
  RSpec.describe 'Long running command', :type => :aruba do
106
114
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
115
+
107
116
  before(:each) { run('env') }
117
+ before(:each) { stop_all_commands }
108
118
 
109
119
  it do
110
120
  with_environment 'REALLY_LONG_LONG_VARIABLE' => '3' do
@@ -124,7 +134,7 @@ Feature: Set environment variable via API-method
124
134
  scope, when you are using `RSpec`.
125
135
 
126
136
  Given a file named "spec/environment_spec.rb" with:
127
- """
137
+ """ruby
128
138
  require 'spec_helper'
129
139
 
130
140
  RSpec.describe 'Long running command', :type => :aruba do
@@ -132,15 +142,18 @@ Feature: Set environment variable via API-method
132
142
 
133
143
  describe 'Method XX' do
134
144
  before(:each) { run('env') }
145
+ before(:each) { stop_all_commands }
135
146
 
136
- it { expect(last_command.output).to include 'LONG_LONG_VARIABLE=1' }
147
+ it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=1' }
137
148
  end
138
149
 
139
150
  describe 'Method YY' do
140
151
  before(:each) { set_environment_variable 'LONG_LONG_VARIABLE', '2' }
152
+
141
153
  before(:each) { run('env') }
154
+ before(:each) { stop_all_commands }
142
155
 
143
- it { expect(last_command.output).to include 'LONG_LONG_VARIABLE=2' }
156
+ it { expect(last_command_started.output).to include 'LONG_LONG_VARIABLE=2' }
144
157
  end
145
158
  end
146
159
  """
@@ -149,14 +162,16 @@ Feature: Set environment variable via API-method
149
162
 
150
163
  Scenario: When an error occures the ENV is not polluted
151
164
  Given a file named "spec/environment_spec.rb" with:
152
- """
165
+ """ruby
153
166
  require 'spec_helper'
154
167
 
155
168
  ENV['REALLY_LONG_LONG_VARIABLE'] = '1'
156
169
 
157
170
  RSpec.describe 'Long running command', :type => :aruba do
158
171
  before(:each) { set_environment_variable 'REALLY_LONG_LONG_VARIABLE', '2' }
172
+
159
173
  before(:each) { run('env') }
174
+ before(:each) { stop_all_commands }
160
175
 
161
176
  it do
162
177
  begin
@@ -182,7 +197,7 @@ Feature: Set environment variable via API-method
182
197
  the most inner block.
183
198
 
184
199
  Given a file named "spec/environment_spec.rb" with:
185
- """
200
+ """ruby
186
201
  require 'spec_helper'
187
202
 
188
203
  ENV['LONG_LONG_VARIABLE'] = '1'
@@ -212,7 +227,7 @@ Feature: Set environment variable via API-method
212
227
  run.
213
228
 
214
229
  Given a file named "spec/environment_spec.rb" with:
215
- """
230
+ """ruby
216
231
  require 'spec_helper'
217
232
 
218
233
  RSpec.describe 'Long running command', :type => :aruba do
@@ -229,8 +244,9 @@ Feature: Set environment variable via API-method
229
244
  it { expect(ENV['REALLY_LONG_LONG_VARIABLE']).to eq '1' }
230
245
 
231
246
  before(:each) { run('env') }
247
+ before(:each) { stop_all_commands }
232
248
 
233
- it { expect(last_command.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
249
+ it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
234
250
  end
235
251
 
236
252
  context 'when arguments given' do
@@ -243,8 +259,9 @@ Feature: Set environment variable via API-method
243
259
  it { expect(ENV['LONG_LONG_VARIABLE']).to eq '2' }
244
260
 
245
261
  before(:each) { run('env') }
262
+ before(:each) { stop_all_commands }
246
263
 
247
- it { expect(last_command.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
264
+ it { expect(last_command_started.output).to include 'REALLY_LONG_LONG_VARIABLE=1' }
248
265
  end
249
266
  end
250
267
  """
@@ -15,7 +15,7 @@ Feature: Change current working directory
15
15
 
16
16
  Scenario: Existing directory
17
17
  Given a file named "spec/cd_spec.rb" with:
18
- """
18
+ """ruby
19
19
  require 'spec_helper'
20
20
 
21
21
  RSpec.describe 'cd to directory', :type => :aruba do
@@ -26,7 +26,7 @@ Feature: Change current working directory
26
26
 
27
27
  before(:each) { run_simple 'pwd' }
28
28
 
29
- it { expect(last_command.output).to include 'new_dir.d' }
29
+ it { expect(last_command_started.output).to include 'new_dir.d' }
30
30
  end
31
31
  """
32
32
  When I run `rspec`
@@ -34,15 +34,15 @@ Feature: Change current working directory
34
34
 
35
35
  Scenario: Non-Existing directory
36
36
  Given a file named "spec/cd_spec.rb" with:
37
- """
37
+ """ruby
38
38
  require 'spec_helper'
39
39
 
40
40
  RSpec.describe 'cd to directory', :type => :aruba do
41
41
  before(:each) { cd 'new_dir.d' }
42
42
  before(:each) { run_simple 'pwd' }
43
43
 
44
- it { expect(last_command.output).to include 'new_dir.d' }
45
- it { expect(last_command).to be_executed_in_time }
44
+ it { expect(last_command_started.output).to include 'new_dir.d' }
45
+ it { expect(last_command_started).to be_executed_in_time }
46
46
  end
47
47
  """
48
48
  When I run `rspec`
@@ -50,7 +50,7 @@ Feature: Change current working directory
50
50
 
51
51
  Scenario: With block in it-block
52
52
  Given a file named "spec/cd_spec.rb" with:
53
- """
53
+ """ruby
54
54
  require 'spec_helper'
55
55
 
56
56
  RSpec.describe 'cd to directory', :type => :aruba do
@@ -74,7 +74,7 @@ Feature: Change current working directory
74
74
  \* Aruba's current directory
75
75
 
76
76
  Given a file named "spec/cd_spec.rb" with:
77
- """
77
+ """ruby
78
78
  require 'spec_helper'
79
79
 
80
80
  RSpec.describe 'cd to directory', :type => :aruba do
@@ -101,7 +101,7 @@ Feature: Change current working directory
101
101
  block-notation of `cd`.
102
102
 
103
103
  Given a file named "spec/cd_spec.rb" with:
104
- """
104
+ """ruby
105
105
  require 'spec_helper'
106
106
 
107
107
  RSpec.describe 'cd to directory', :type => :aruba do
@@ -125,7 +125,7 @@ Feature: Change current working directory
125
125
  block-notation of `cd`.
126
126
 
127
127
  Given a file named "spec/cd_spec.rb" with:
128
- """
128
+ """ruby
129
129
  require 'spec_helper'
130
130
 
131
131
  RSpec.describe 'cd to directory', :type => :aruba do
@@ -153,7 +153,7 @@ Feature: Change current working directory
153
153
  block-notation of `cd`.
154
154
 
155
155
  Given a file named "spec/cd_spec.rb" with:
156
- """
156
+ """ruby
157
157
  require 'spec_helper'
158
158
 
159
159
  RSpec.describe 'cd to directory', :type => :aruba do
@@ -162,12 +162,22 @@ Feature: Change current working directory
162
162
  end
163
163
 
164
164
  before :each do
165
- @pwd = cd('new_dir.d') do
166
- cd('subdir.d') { run_simple('pwd') }
165
+ cd('new_dir.d') do
166
+ @oldpwd_1 = ENV['OLDPWD']
167
+ @pwd_1 = ENV['PWD']
168
+
169
+ cd('subdir.d') do
170
+ @oldpwd_2 = ENV['OLDPWD']
171
+ @pwd_2 = ENV['PWD']
172
+ end
167
173
  end
168
174
  end
169
175
 
170
- it { expect(last_command.output.to_s).to include 'subdir.d' }
176
+ it { expect(@oldpwd_1).to be_end_with 'cli-app' }
177
+ it { expect(@pwd_1).to be_end_with 'new_dir.d' }
178
+
179
+ it { expect(@oldpwd_2).to be_end_with 'new_dir.d' }
180
+ it { expect(@pwd_2).to be_end_with 'subdir.d' }
171
181
  end
172
182
  """
173
183
  When I run `rspec`
@@ -23,7 +23,7 @@ Feature: Create Directory
23
23
 
24
24
  Scenario: New directory
25
25
  Given a file named "spec/create_directory_spec.rb" with:
26
- """
26
+ """ruby
27
27
  require 'spec_helper'
28
28
 
29
29
  RSpec.describe 'Create directory', :type => :aruba do
@@ -41,7 +41,7 @@ Feature: Create Directory
41
41
  It does not complain if a directory already exists.
42
42
 
43
43
  Given a file named "spec/create_directory_spec.rb" with:
44
- """
44
+ """ruby
45
45
  require 'spec_helper'
46
46
 
47
47
  RSpec.describe 'Create directory', :type => :aruba do
@@ -1,3 +1,4 @@
1
+ @unsupported-on-ruby-older-19
1
2
  Feature: Report disk usage
2
3
 
3
4
  Sometimes you need to check, what amount of disk space a file consumes. We do
@@ -21,7 +22,7 @@ Feature: Report disk usage
21
22
 
22
23
  Scenario: Show disk usage for file
23
24
  Given a file named "spec/disk_usage_spec.rb" with:
24
- """
25
+ """ruby
25
26
  require 'spec_helper'
26
27
 
27
28
  RSpec.describe 'disk usage', :type => :aruba do
@@ -44,7 +45,7 @@ Feature: Report disk usage
44
45
  `#disk_usage` creates the sum of all given objects' sizes.
45
46
 
46
47
  Given a file named "spec/disk_usage_spec.rb" with:
47
- """
48
+ """ruby
48
49
  require 'spec_helper'
49
50
 
50
51
  RSpec.describe 'disk usage', :type => :aruba do
@@ -67,7 +68,7 @@ Feature: Report disk usage
67
68
 
68
69
  Scenario: Convert reported disk usage to KibiByte
69
70
  Given a file named "spec/disk_usage_spec.rb" with:
70
- """
71
+ """ruby
71
72
  require 'spec_helper'
72
73
 
73
74
  RSpec.describe 'disk usage', :type => :aruba do
@@ -87,7 +88,7 @@ Feature: Report disk usage
87
88
 
88
89
  Scenario: Convert reported disk usage to MebiByte
89
90
  Given a file named "spec/disk_usage_spec.rb" with:
90
- """
91
+ """ruby
91
92
  require 'spec_helper'
92
93
 
93
94
  RSpec.describe 'disk usage', :type => :aruba do
@@ -107,7 +108,7 @@ Feature: Report disk usage
107
108
 
108
109
  Scenario: Convert reported disk usage to GibiByte
109
110
  Given a file named "spec/disk_usage_spec.rb" with:
110
- """
111
+ """ruby
111
112
  require 'spec_helper'
112
113
 
113
114
  RSpec.describe 'disk usage', :type => :aruba do
@@ -127,7 +128,7 @@ Feature: Report disk usage
127
128
 
128
129
  Scenario: Compare two repored disk usages
129
130
  Given a file named "spec/disk_usage_spec.rb" with:
130
- """
131
+ """ruby
131
132
  require 'spec_helper'
132
133
 
133
134
  RSpec.describe 'disk usage', :type => :aruba do
@@ -28,7 +28,7 @@ Feature: Check existence of files and directories
28
28
 
29
29
  Scenario: Is file or directory and exists
30
30
  Given a file named "spec/create_directory_spec.rb" with:
31
- """
31
+ """ruby
32
32
  require 'spec_helper'
33
33
 
34
34
  RSpec.describe 'Check if directory and file exist', :type => :aruba do
@@ -47,7 +47,7 @@ Feature: Check existence of files and directories
47
47
 
48
48
  Scenario: Is file or directory and does not exist
49
49
  Given a file named "spec/create_directory_spec.rb" with:
50
- """
50
+ """ruby
51
51
  require 'spec_helper'
52
52
 
53
53
  RSpec.describe 'Check if directory and file exist', :type => :aruba do
@@ -21,7 +21,7 @@ Feature: Check if path is absolute
21
21
 
22
22
  Scenario: Is path absolute
23
23
  Given a file named "spec/create_directory_spec.rb" with:
24
- """
24
+ """ruby
25
25
  require 'spec_helper'
26
26
 
27
27
  RSpec.describe 'Check if directory or file is absolute', :type => :aruba do
@@ -35,7 +35,7 @@ Feature: Check if path is absolute
35
35
 
36
36
  Scenario: Path should be absolute, but it's relative
37
37
  Given a file named "spec/create_directory_spec.rb" with:
38
- """
38
+ """ruby
39
39
  require 'spec_helper'
40
40
 
41
41
  RSpec.describe 'Check if directory or file is absolute', :type => :aruba do
@@ -24,7 +24,7 @@ Feature: Check existence of directories
24
24
 
25
25
  Scenario: Is directory and exist
26
26
  Given a file named "spec/create_directory_spec.rb" with:
27
- """
27
+ """ruby
28
28
  require 'spec_helper'
29
29
 
30
30
  RSpec.describe 'Check if directory and file exist', :type => :aruba do
@@ -39,7 +39,7 @@ Feature: Check existence of directories
39
39
 
40
40
  Scenario: Is file, but should be directory and exist
41
41
  Given a file named "spec/create_directory_spec.rb" with:
42
- """
42
+ """ruby
43
43
  require 'spec_helper'
44
44
 
45
45
  RSpec.describe 'Check if directory and file exist', :type => :aruba do
@@ -24,7 +24,7 @@ Feature: Check existence of files
24
24
 
25
25
  Scenario: Is file and exist
26
26
  Given a file named "spec/create_directory_spec.rb" with:
27
- """
27
+ """ruby
28
28
  require 'spec_helper'
29
29
 
30
30
  RSpec.describe 'Check if directory and file exist', :type => :aruba do
@@ -40,7 +40,7 @@ Feature: Check existence of files
40
40
 
41
41
  Scenario: Is directory, but should be file and exist
42
42
  Given a file named "spec/create_directory_spec.rb" with:
43
- """
43
+ """ruby
44
44
  require 'spec_helper'
45
45
 
46
46
  RSpec.describe 'Check if directory and file exist', :type => :aruba do
@@ -21,7 +21,7 @@ Feature: Check if path is relative
21
21
 
22
22
  Scenario: Is path relative
23
23
  Given a file named "spec/create_directory_spec.rb" with:
24
- """
24
+ """ruby
25
25
  require 'spec_helper'
26
26
 
27
27
  RSpec.describe 'Check if directory or file is relative', :type => :aruba do
@@ -35,7 +35,7 @@ Feature: Check if path is relative
35
35
 
36
36
  Scenario: Path should be relative, but it's relative
37
37
  Given a file named "spec/create_directory_spec.rb" with:
38
- """
38
+ """ruby
39
39
  require 'spec_helper'
40
40
 
41
41
  RSpec.describe 'Check if directory or file is relative', :type => :aruba do