aruba 0.14.2 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,39 +10,9 @@ RSpec.describe 'Path Matchers' do
10
10
  @aruba.expand_path(*args)
11
11
  end
12
12
 
13
- describe 'to_match_path_pattern' do
14
- context 'when pattern is string' do
15
- context 'when there is file which matches path pattern' do
16
- before :each do
17
- Aruba.platform.write_file(@file_path, '')
18
- end
19
-
20
- it { expect(all_paths).to match_path_pattern(expand_path(@file_name)) }
21
- end
22
-
23
- context 'when there is not file which matches path pattern' do
24
- it { expect(all_paths).not_to match_path_pattern('test') }
25
- end
26
- end
27
-
28
- context 'when pattern is regex' do
29
- context 'when there is file which matches path pattern' do
30
- before :each do
31
- Aruba.platform.write_file(@file_path, '')
32
- end
33
-
34
- it { expect(all_paths).to match_path_pattern(/test/) }
35
- end
36
-
37
- context 'when there is not file which matches path pattern' do
38
- it { expect(all_paths).not_to match_path_pattern(/test/) }
39
- end
40
- end
41
- end
42
-
43
13
  describe 'to_be_an_absolute_path' do
44
14
  let(:name) { @file_name }
45
- let(:path) { File.expand_path(File.join(@aruba.current_directory, name)) }
15
+ let(:path) { @aruba.expand_path(name) }
46
16
 
47
17
  context 'when is absolute path' do
48
18
  it { expect(path).to be_an_absolute_path }
@@ -70,7 +40,7 @@ RSpec.describe 'Path Matchers' do
70
40
 
71
41
  context 'when directory' do
72
42
  let(:name) { 'test.d' }
73
- let(:path) { File.join(@aruba.current_directory, name) }
43
+ let(:path) { @aruba.expand_path(name) }
74
44
 
75
45
  context 'exists' do
76
46
  before :each do
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'securerandom'
2
3
 
3
4
  RSpec.shared_context 'uses aruba API' do
4
5
  def random_string(options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-08-16 00:00:00.000000000 Z
16
+ date: 2017-12-15 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: cucumber
@@ -35,14 +35,14 @@ dependencies:
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: 0.5.6
38
+ version: 0.8.0
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: 0.5.6
45
+ version: 0.8.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: ffi
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,6 @@ files:
192
192
  - features/configuration/usage.feature
193
193
  - features/configuration/working_directory.feature
194
194
  - features/development/build.feature
195
- - features/development/test.feature
196
195
  - features/getting_started/cleanup.feature
197
196
  - features/getting_started/install.feature
198
197
  - features/getting_started/run_commands.feature
@@ -393,6 +392,7 @@ files:
393
392
  - script/bootstrap
394
393
  - script/console
395
394
  - script/test
395
+ - spec/aruba/api/deprecated_spec.rb
396
396
  - spec/aruba/api/environment/restore_env_spec.rb
397
397
  - spec/aruba/api/environment/set_env_spec.rb
398
398
  - spec/aruba/api/filesystem/file_size_spec.rb
@@ -406,6 +406,7 @@ files:
406
406
  - spec/aruba/jruby_spec.rb
407
407
  - spec/aruba/matchers/command/have_output_size_spec.rb
408
408
  - spec/aruba/matchers/command_spec.rb
409
+ - spec/aruba/matchers/deprecated_spec.rb
409
410
  - spec/aruba/matchers/directory_spec.rb
410
411
  - spec/aruba/matchers/file_spec.rb
411
412
  - spec/aruba/matchers/path_spec.rb
@@ -472,159 +473,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
472
473
  version: '0'
473
474
  requirements: []
474
475
  rubyforge_project:
475
- rubygems_version: 2.6.3
476
+ rubygems_version: 2.6.13
476
477
  signing_key:
477
478
  specification_version: 4
478
- summary: aruba-0.14.2
479
- test_files:
480
- - features/api/command/find_command.feature
481
- - features/api/command/last_command_started.feature
482
- - features/api/command/last_command_stopped.feature
483
- - features/api/command/run.feature
484
- - features/api/command/run_simple.feature
485
- - features/api/command/send_signal.feature
486
- - features/api/command/stderr.feature
487
- - features/api/command/stdout.feature
488
- - features/api/command/stop.feature
489
- - features/api/command/stop_all_commands.feature
490
- - features/api/command/terminate_all_commands.feature
491
- - features/api/command/which.feature
492
- - features/api/core/expand_path.feature
493
- - features/api/environment/append_environment_variable.feature
494
- - features/api/environment/delete_environment_variable.feature
495
- - features/api/environment/prepend_environment_variable.feature
496
- - features/api/environment/set_environment_variable.feature
497
- - features/api/filesystem/cd.feature
498
- - features/api/filesystem/create_directory.feature
499
- - features/api/filesystem/disk_usage.feature
500
- - features/api/filesystem/does_exist.feature
501
- - features/api/filesystem/fixtures.feature
502
- - features/api/filesystem/is_absolute.feature
503
- - features/api/filesystem/is_directory.feature
504
- - features/api/filesystem/is_file.feature
505
- - features/api/filesystem/is_relative.feature
506
- - features/api/filesystem/move.feature
507
- - features/api/text/extract_text.feature
508
- - features/api/text/replace_variables.feature
509
- - features/api/text/sanitize_text.feature
510
- - features/api/text/unescape_text.feature
511
- - features/cli/console.feature
512
- - features/cli/init.feature
513
- - features/configuration/activate_announcer_on_command_failure.feature
514
- - features/configuration/command_runtime_environment.feature
515
- - features/configuration/console_history_file.feature
516
- - features/configuration/exit_timeout.feature
517
- - features/configuration/fixtures_directories.feature
518
- - features/configuration/fixtures_path_prefix.feature
519
- - features/configuration/home_directory.feature
520
- - features/configuration/io_timeout.feature
521
- - features/configuration/keep_ansi.feature
522
- - features/configuration/log_level.feature
523
- - features/configuration/physical_block_size.feature
524
- - features/configuration/remove_ansi_escape_sequences.feature
525
- - features/configuration/root_directory.feature
526
- - features/configuration/startup_wait_time.feature
527
- - features/configuration/usage.feature
528
- - features/configuration/working_directory.feature
529
- - features/development/build.feature
530
- - features/development/test.feature
531
- - features/getting_started/cleanup.feature
532
- - features/getting_started/install.feature
533
- - features/getting_started/run_commands.feature
534
- - features/getting_started/supported_testing_frameworks.feature
535
- - features/getting_started/writing_good_feature_tests.feature
536
- - features/hooks/after/command.feature
537
- - features/hooks/before/command.feature
538
- - features/matchers/collection/include_an_object.feature
539
- - features/matchers/directory/have_sub_directory.feature
540
- - features/matchers/file/be_a_command_found_in_path.feature
541
- - features/matchers/file/be_existing_executable.feature
542
- - features/matchers/file/be_existing_file.feature
543
- - features/matchers/file/have_file_content.feature
544
- - features/matchers/file/have_file_size.feature
545
- - features/matchers/path/be_an_absolute_path.feature
546
- - features/matchers/path/be_an_existing_path.feature
547
- - features/matchers/path/have_permissions.feature
548
- - features/matchers/timeouts.feature
549
- - features/platforms/jruby.feature
550
- - features/rspec/integration.feature
551
- - features/step_definitions/aruba_dev_steps.rb
552
- - features/step_definitions/hooks.rb
553
- - features/steps/command/debug.feature
554
- - features/steps/command/exit_statuses.feature
555
- - features/steps/command/in_process.feature
556
- - features/steps/command/interactive.feature
557
- - features/steps/command/output.feature
558
- - features/steps/command/run.feature
559
- - features/steps/command/send_signal.feature
560
- - features/steps/command/shell.feature
561
- - features/steps/command/stderr.feature
562
- - features/steps/command/stdout.feature
563
- - features/steps/command/stop.feature
564
- - features/steps/core/announce.feature
565
- - features/steps/environment/append_environment_variable.feature
566
- - features/steps/environment/home_variable.feature
567
- - features/steps/environment/prepend_environment_variable.feature
568
- - features/steps/environment/set_environment_variable.feature
569
- - features/steps/filesystem/append_to_file.feature
570
- - features/steps/filesystem/cd_to_directory.feature
571
- - features/steps/filesystem/check_file_content.feature
572
- - features/steps/filesystem/check_permissions_of_file.feature
573
- - features/steps/filesystem/compare_files.feature
574
- - features/steps/filesystem/copy.feature
575
- - features/steps/filesystem/create_directory.feature
576
- - features/steps/filesystem/create_file.feature
577
- - features/steps/filesystem/existence_of_directory.feature
578
- - features/steps/filesystem/existence_of_file.feature
579
- - features/steps/filesystem/file_content.feature
580
- - features/steps/filesystem/fixtures.feature
581
- - features/steps/filesystem/move.feature
582
- - features/steps/filesystem/non_existence_of_directory.feature
583
- - features/steps/filesystem/non_existence_of_file.feature
584
- - features/steps/filesystem/overwrite_file.feature
585
- - features/steps/filesystem/remove_directory.feature
586
- - features/steps/filesystem/remove_file.feature
587
- - features/steps/filesystem/use_fixture.feature
588
- - features/steps/overview.feature
589
- - features/support/aruba.rb
590
- - features/support/env.rb
591
- - features/support/jruby.rb
592
- - features/support/simplecov_setup.rb
593
- - spec/aruba/api/environment/restore_env_spec.rb
594
- - spec/aruba/api/environment/set_env_spec.rb
595
- - spec/aruba/api/filesystem/file_size_spec.rb
596
- - spec/aruba/api/runtime_spec.rb
597
- - spec/aruba/api_spec.rb
598
- - spec/aruba/aruba_path_spec.rb
599
- - spec/aruba/basic_configuration_spec.rb
600
- - spec/aruba/configuration_spec.rb
601
- - spec/aruba/hooks_spec.rb
602
- - spec/aruba/in_config_wrapper_spec.rb
603
- - spec/aruba/jruby_spec.rb
604
- - spec/aruba/matchers/command/have_output_size_spec.rb
605
- - spec/aruba/matchers/command_spec.rb
606
- - spec/aruba/matchers/directory_spec.rb
607
- - spec/aruba/matchers/file_spec.rb
608
- - spec/aruba/matchers/path_spec.rb
609
- - spec/aruba/platform/simple_table_spec.rb
610
- - spec/aruba/platform/windows_environment_variables_spec.rb
611
- - spec/aruba/rspec_spec.rb
612
- - spec/aruba/runtime_spec.rb
613
- - spec/aruba/spawn_process_spec.rb
614
- - spec/event_bus/name_resolver_spec.rb
615
- - spec/event_bus_spec.rb
616
- - spec/spec_helper.rb
617
- - spec/support/configs/.keep
618
- - spec/support/configs/aruba.rb
619
- - spec/support/configs/pry.rb
620
- - spec/support/configs/rspec.rb
621
- - spec/support/helpers/.keep
622
- - spec/support/helpers/reporting.rb
623
- - spec/support/matchers/.keep
624
- - spec/support/matchers/option.rb
625
- - spec/support/shared_contexts/.keep
626
- - spec/support/shared_contexts/aruba.rb
627
- - spec/support/shared_examples/.keep
628
- - spec/support/shared_examples/configuration.rb
629
- - spec/support/shared_examples/directory.rb
630
- - spec/support/shared_examples/file.rb
479
+ summary: aruba-0.14.3
480
+ test_files: []
@@ -1,24 +0,0 @@
1
- Feature: Run test suite of aruba
2
-
3
- As a aruba developer
4
- I want to run the test suite of aruba
5
- In order to make changes to it
6
-
7
- Background:
8
- Given the default aruba exit timeout is 120 seconds
9
- And I successfully run `git clone https://github.com/cucumber/aruba.git`
10
- And I cd to "aruba"
11
-
12
- @ignore
13
- Scenario: Testing user interface
14
- Given I successfully run `cucumber`
15
- Then the features should all pass
16
-
17
- @unsupported-on-ruby-older-193
18
- Scenario: Testing compliance to ruby community guide
19
- Given I successfully run `rubocop`
20
- Then the features should all pass
21
-
22
- Scenario: Testing api
23
- Given I successfully run `rspec`
24
- Then the features should all pass