vagrant-unbundled 1.9.5.1 → 1.9.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/2.14.0 +5 -0
- data/CHANGELOG.md +55 -0
- data/Gemfile.lock +23 -18
- data/lib/vagrant/action/builtin/box_add.rb +10 -0
- data/lib/vagrant/action/builtin/ssh_run.rb +3 -1
- data/lib/vagrant/bundler.rb +33 -8
- data/lib/vagrant/config/loader.rb +12 -0
- data/lib/vagrant/environment.rb +100 -36
- data/lib/vagrant/errors.rb +12 -0
- data/lib/vagrant/machine.rb +32 -0
- data/lib/vagrant/plugin/manager.rb +13 -2
- data/lib/vagrant/shared_helpers.rb +15 -2
- data/lib/vagrant/util/platform.rb +6 -15
- data/lib/vagrant/util/safe_exec.rb +6 -6
- data/lib/vagrant/util/ssh.rb +8 -2
- data/plugins/commands/box/command/add.rb +1 -1
- data/plugins/commands/login/client.rb +12 -9
- data/plugins/commands/login/command.rb +4 -4
- data/plugins/commands/login/locales/en.yml +5 -5
- data/plugins/commands/login/middleware/add_authentication.rb +2 -1
- data/plugins/commands/login/plugin.rb +1 -1
- data/plugins/commands/snapshot/command/delete.rb +13 -1
- data/plugins/commands/snapshot/command/list.rb +1 -2
- data/plugins/commands/snapshot/command/restore.rb +13 -1
- data/plugins/commands/snapshot/command/save.rb +20 -1
- data/plugins/commands/ssh/command.rb +7 -1
- data/plugins/communicators/ssh/communicator.rb +9 -0
- data/plugins/communicators/winssh/communicator.rb +1 -1
- data/plugins/communicators/winssh/config.rb +8 -0
- data/plugins/guests/kali/guest.rb +10 -0
- data/plugins/guests/kali/plugin.rb +15 -0
- data/plugins/guests/smartos/cap/change_host_name.rb +14 -5
- data/plugins/guests/smartos/cap/halt.rb +1 -1
- data/plugins/guests/smartos/cap/insert_public_key.rb +28 -0
- data/plugins/guests/smartos/cap/mount_nfs.rb +11 -2
- data/plugins/guests/smartos/cap/remove_public_key.rb +25 -0
- data/plugins/guests/smartos/plugin.rb +11 -0
- data/plugins/guests/windows/cap/public_key.rb +106 -0
- data/plugins/guests/windows/cap/rsync.rb +1 -1
- data/plugins/guests/windows/errors.rb +4 -0
- data/plugins/guests/windows/plugin.rb +10 -0
- data/plugins/hosts/bsd/cap/nfs.rb +1 -1
- data/plugins/kernel_v2/config/ssh_connect.rb +6 -0
- data/plugins/kernel_v2/config/vm.rb +10 -12
- data/plugins/kernel_v2/config/vm_provisioner.rb +10 -0
- data/plugins/providers/docker/driver/compose.rb +1 -1
- data/plugins/providers/docker/provider.rb +1 -1
- data/plugins/providers/hyperv/action/import.rb +1 -1
- data/plugins/providers/virtualbox/action.rb +2 -3
- data/plugins/providers/virtualbox/driver/version_4_3.rb +6 -1
- data/plugins/providers/virtualbox/driver/version_5_0.rb +12 -1
- data/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb +1 -1
- data/plugins/provisioners/ansible/cap/guest/suse/ansible_install.rb +1 -1
- data/plugins/provisioners/ansible/provisioner/host.rb +2 -5
- data/plugins/provisioners/docker/config.rb +11 -0
- data/plugins/provisioners/docker/installer.rb +5 -1
- data/plugins/provisioners/docker/provisioner.rb +18 -1
- data/plugins/provisioners/salt/provisioner.rb +17 -7
- data/plugins/synced_folders/rsync/command/rsync_auto.rb +18 -0
- data/plugins/synced_folders/unix_mount_helpers.rb +1 -1
- data/templates/commands/init/Vagrantfile.erb +1 -8
- data/templates/locales/en.yml +29 -6
- data/templates/locales/guest_windows.yml +4 -0
- data/test/unit/plugins/commands/login/client_test.rb +2 -2
- data/test/unit/plugins/commands/snapshot/command/delete_test.rb +97 -0
- data/test/unit/plugins/commands/snapshot/command/list_test.rb +83 -0
- data/test/unit/plugins/commands/snapshot/command/restore_test.rb +97 -0
- data/test/unit/plugins/commands/snapshot/command/save_test.rb +110 -0
- data/test/unit/plugins/communicators/ssh/communicator_test.rb +14 -0
- data/test/unit/plugins/communicators/winssh/communicator_test.rb +2 -1
- data/test/unit/plugins/guests/smartos/cap/change_host_name_test.rb +22 -16
- data/test/unit/plugins/guests/smartos/cap/halt_test.rb +1 -1
- data/test/unit/plugins/guests/smartos/cap/insert_public_key_test.rb +38 -0
- data/test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb +21 -13
- data/test/unit/plugins/guests/smartos/cap/remove_public_key_test.rb +34 -0
- data/test/unit/plugins/guests/windows/cap/insert_public_key_test.rb +75 -0
- data/test/unit/plugins/guests/windows/cap/remove_public_key_test.rb +66 -0
- data/test/unit/plugins/guests/windows/cap/rsync_test.rb +1 -1
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +28 -0
- data/test/unit/plugins/provisioners/ansible/provisioner_test.rb +16 -0
- data/test/unit/plugins/provisioners/docker/config_test.rb +22 -0
- data/test/unit/plugins/provisioners/docker/provisioner_test.rb +79 -0
- data/test/unit/plugins/synced_folders/rsync/command/rsync_auto_test.rb +61 -15
- data/test/unit/vagrant/action/builtin/box_add_test.rb +47 -0
- data/test/unit/vagrant/action/builtin/ssh_run_test.rb +83 -0
- data/test/unit/vagrant/config/loader_test.rb +20 -1
- data/test/unit/vagrant/environment_test.rb +59 -14
- data/test/unit/vagrant/machine_test.rb +61 -0
- data/test/unit/vagrant/plugin/manager_test.rb +2 -2
- data/test/unit/vagrant/util/platform_test.rb +8 -2
- data/test/unit/vagrant/util/ssh_test.rb +158 -0
- data/test/unit/vagrant/util/subprocess_test.rb +1 -1
- data/vagrant.gemspec +1 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/.travis.yml +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/README.md +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/cli/box_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/cli/init_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/cli/plugin_spec.rb +164 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/cli/version_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/output/box_output.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/output/plugin_output.rb +47 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/output/version_output.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provider/basic_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provider/network_forwarded_port_spec.rb +25 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/acceptance/provider/network_private_network_spec.rb +25 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provider/package_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provider/synced_folder_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provisioner/chef_solo_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provisioner/docker_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provisioner/puppet_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/provisioner/shell_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-boxes/empty.box +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-boxes/empty/metadata.json +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-plugins/README.md +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-plugins/vagrant-spec-helper-basic/gem-0.1.0.gemspec +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-plugins/vagrant-spec-helper-basic/gem-0.2.0.gemspec +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-plugins/vagrant-spec-helper-basic/gem-renamed-0.1.0.gemspec +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-plugins/vagrant-spec-helper-basic/lib/vagrant-spec-helper-basic.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-plugins/vagrant-spec-helper-basic/lib/vshb/command.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/network_forwarded_port/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/network_private_network/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_chef_solo/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_chef_solo/basic-roles/cookbooks/bar/recipes/default.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_chef_solo/basic-roles/roles/foo.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_chef_solo/basic/cookbooks/foo/recipes/default.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_docker/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_puppet/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_puppet/basic-modules/manifests/default.pp +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_puppet/basic-modules/modules/foo/manifests/init.pp +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_puppet/manifests/default.pp +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_shell/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_shell/args.sh +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_shell/path.sh +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_shell/user.sh +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/provisioner_shell/user_root.sh +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/synced_folder_nfs/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/synced_folder_nfs/foo +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/synced_folder_rsync/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/synced_folder_rsync/foo +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/synced_folders/Vagrantfile +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/support-skeletons/synced_folders/foo +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/synced_folder/nfs_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/acceptance/synced_folder/rsync_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/bin/vagrant-spec +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/configuration.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/isolated_environment.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/output.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/rspec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/rspec/context.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/rspec/formatter.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/rspec/matcher_exit_with.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/rspec/matcher_match_output.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/rspec/shared_provider_synced_folder.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/acceptance/runner.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/lib/vagrant-spec/cli.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/lib/vagrant-spec/components.rb +72 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/isolated_environment.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/server.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/subprocess.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/unit.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/unit/dummy_provider.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/unit/isolated_environment.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/unit/rspec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/unit/rspec/context.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/vagrant-plugin/command.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/vagrant-plugin/plugin.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/version.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/lib/vagrant-spec/which.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/acceptance/configuration_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/acceptance/isolated_environment_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/shared/isolated_environment_spec.rb +43 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/acceptance/shared/output_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/components_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/isolated_environment_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/subprocess_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/{vagrant-spec-1d09951eaef3 → vagrant-spec-af86757912f7}/spec/unit/isolated_environment_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/vagrant-spec.gemspec +47 -0
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/FETCH_HEAD +1 -1
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/hooks/pre-rebase.sample +3 -3
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/objects/pack/pack-f979460dc5541c1808629bdb43fe5492f9589bee.idx +0 -0
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/objects/pack/pack-f979460dc5541c1808629bdb43fe5492f9589bee.pack +0 -0
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/packed-refs +1 -1
- data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/ffi-1.9.18/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/ffi-1.9.18/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/ffi-1.9.18/mkmf.log +2 -2
- data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/unf_ext-0.0.7.4/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/unf_ext-0.0.7.4/unf_ext.so +0 -0
- data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/wdm-0.1.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.codeclimate.yml +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.gitignore +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.rspec +4 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.rubocop.yml +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.rubocop_todo.yml +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.simplecov +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/.travis.yml +33 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/CHANGELOG.md +136 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/CONTRIBUTORS.md +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/Gemfile +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/Guardfile +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/README.md +101 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/Rakefile +15 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/fake_ftp.gemspec +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp.rb +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/file.rb +40 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server.rb +240 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands.rb +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/acct.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/cdup.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/cwd.rb +13 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/dele.rb +25 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/list.rb +39 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/mdtm.rb +17 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/mkd.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/nlst.rb +32 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/pass.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/pasv.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/port.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/pwd.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/quit.rb +13 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/retr.rb +32 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/rnfr.rb +18 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/rnto.rb +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/site.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/size.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/stor.rb +30 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/type.rb +18 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/user.rb +12 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/server_commands/wat.rb +33 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/lib/fake_ftp/version.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/{fake_ftp-0.1.1 → fake_ftp-0.3.0}/spec/fixtures/invisible_bike.jpg +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{fake_ftp-0.1.1 → fake_ftp-0.3.0}/spec/fixtures/text_file.txt +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/spec/functional/server_spec.rb +585 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/spec/integration/server_spec.rb +91 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/spec/models/fake_ftp/file_spec.rb +103 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/spec/models/fake_ftp/server_spec.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.3.0/spec/spec_helper.rb +102 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/AbstractMemory.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/ArrayType.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Buffer.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Call.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/ClosurePool.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/DataConverter.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/DynamicLibrary.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Function.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/FunctionInfo.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/LastError.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/LongDouble.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/MappedType.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/MemoryPointer.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/MethodHandle.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Platform.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Pointer.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Struct.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/StructByReference.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/StructByValue.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/StructLayout.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Thread.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Type.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Types.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/Variadic.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/ffi.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/ext/ffi_c/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/.rspec +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/.travis.yml +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/Gemfile +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/README.md +243 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/changelog.md +64 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/hashdiff.gemspec +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/lib/hashdiff.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/lib/hashdiff/diff.rb +227 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/lib/hashdiff/lcs.rb +69 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/lib/hashdiff/patch.rb +88 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/lib/hashdiff/util.rb +146 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/lib/hashdiff/version.rb +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/spec/hashdiff/best_diff_spec.rb +74 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/spec/hashdiff/diff_array_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/spec/hashdiff/diff_spec.rb +313 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/spec/hashdiff/lcs_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/spec/hashdiff/patch_spec.rb +183 -0
- data/vendor/bundle/ruby/2.4.0/gems/{hashdiff-0.3.4 → hashdiff-0.3.5}/spec/hashdiff/util_spec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.5/spec/spec_helper.rb +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/Gemfile +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/Guardfile +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/README.md +259 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/Rakefile +33 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/bin/fsevent_watch +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/LICENSE +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/FSEventsFix.c +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/FSEventsFix.h +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/TSICTString.c +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/TSICTString.h +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/ext/fsevent_watch/cli.c +201 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/cli.h +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/common.h +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/ext/fsevent_watch/compat.c +41 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/ext/fsevent_watch/compat.h +100 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/defines.h +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/ext/fsevent_watch/main.c +548 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/signal_handlers.c +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/ext/fsevent_watch/signal_handlers.h +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/ext/rakefile.rb +226 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/lib/otnetstring.rb +85 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-fsevent-0.9.8 → rb-fsevent-0.10.2}/lib/rb-fsevent.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/lib/rb-fsevent/fsevent.rb +157 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/lib/rb-fsevent/version.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.10.2/rb-fsevent.gemspec +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/.gitignore +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/.travis.yml +30 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-inotify-0.9.8 → rb-inotify-0.9.10}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/Gemfile +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/README.md +103 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/Rakefile +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/lib/rb-inotify.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-inotify-0.9.8 → rb-inotify-0.9.10}/lib/rb-inotify/errors.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-inotify-0.9.8 → rb-inotify-0.9.10}/lib/rb-inotify/event.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/lib/rb-inotify/native.rb +36 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/lib/rb-inotify/native/flags.rb +94 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/lib/rb-inotify/notifier.rb +339 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/lib/rb-inotify/version.rb +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rb-inotify-0.9.8 → rb-inotify-0.9.10}/lib/rb-inotify/watcher.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/rb-inotify.gemspec +30 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/spec/rb-inotify/errors_spec.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/spec/rb-inotify_spec.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.10/spec/spec_helper.rb +12 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-3.5.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-3.5.0/README.md +39 -0
- data/vendor/bundle/ruby/2.4.0/gems/{rspec-2.14.1 → rspec-3.5.0}/lib/rspec.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-3.5.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/.document +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/.yardopts +8 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/Changelog.md +2102 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/README.md +384 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core.rb +185 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/bisect/coordinator.rb +66 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/bisect/example_minimizer.rb +169 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/bisect/runner.rb +169 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/bisect/server.rb +65 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb +2100 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration_options.rb +194 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/drb.rb +111 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/example.rb +649 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb +879 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters.rb +255 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/base_text_formatter.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/bisect_formatter.rb +69 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/bisect_progress_formatter.rb +144 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/console_codes.rb +65 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/documentation_formatter.rb +69 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/exception_presenter.rb +491 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/html_formatter.rb +151 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/html_snippet_extractor.rb +116 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/json_formatter.rb +96 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/progress_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/protocol.rb +181 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/formatters/snippet_extractor.rb +136 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/hooks.rb +624 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/invocations.rb +67 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/memoized_helpers.rb +532 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/metadata.rb +499 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/metadata_filter.rb +243 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/notifications.rb +498 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/option_parser.rb +289 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/profiler.rb +32 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/project_initializer/.rspec +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/project_initializer/spec/spec_helper.rb +103 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/rake_task.rb +168 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/reporter.rb +248 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb +188 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/set.rb +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/shared_example_group.rb +247 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/source.rb +86 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/source/location.rb +13 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/source/node.rb +93 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/source/syntax_highlighter.rb +71 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/world.rb +256 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/.document +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/Changelog.md +1034 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/README.md +303 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/configuration.rb +201 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/fail_with.rb +31 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers.rb +1038 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/all.rb +85 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/base_matcher.rb +181 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/change.rb +354 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/compound.rb +272 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/contain_exactly.rb +286 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/exist.rb +86 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/include.rb +143 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/raise_error.rb +230 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/respond_to.rb +165 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/satisfy.rb +37 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/yield.rb +419 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/composable.rb +185 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/dsl.rb +466 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/generated_descriptions.rb +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/.document +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/Changelog.md +1043 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/README.md +445 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks.rb +130 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/chain.rb +110 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +35 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/expectation_chain.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/stub_chain.rb +47 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +28 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/configuration.rb +205 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/example_methods.rb +422 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/instance_method_stasher.rb +135 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/have_received.rb +130 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/message_expectation.rb +740 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/mutate_const.rb +335 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/proxy.rb +489 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/test_double.rb +170 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/verifying_proxy.rb +213 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-3.5.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/Changelog.md +192 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/README.md +40 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support.rb +139 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/encoded_string.rb +165 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/method_signature_verifier.rb +392 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/object_formatter.rb +249 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/ruby_features.rb +149 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/in_sub_process.rb +52 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/shell_out.rb +82 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.5.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/ruby/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext/Makefile +2 -2
- data/vendor/bundle/ruby/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext/unf.o +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext/unf_ext.so +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/unf_ext-0.0.7.4/lib/unf_ext.so +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/wdm-0.1.1/ext/wdm/Makefile +2 -2
- data/vendor/bundle/ruby/2.4.0/specifications/fake_ftp-0.3.0.gemspec +20 -0
- data/vendor/bundle/ruby/2.4.0/specifications/hashdiff-0.3.5.gemspec +39 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rb-fsevent-0.10.2.gemspec +42 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rb-inotify-0.9.10.gemspec +40 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-3.5.0.gemspec +42 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-core-3.5.4.gemspec +62 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-expectations-3.5.0.gemspec +50 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-mocks-3.5.0.gemspec +50 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-support-3.5.0.gemspec +41 -0
- data/version.txt +1 -1
- metadata +448 -752
- data/vendor/bundle/ruby/2.4.0/bin/autospec +0 -22
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/acceptance/cli/plugin_spec.rb +0 -156
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/acceptance/output/plugin_output.rb +0 -42
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/acceptance/provider/network_forwarded_port_spec.rb +0 -23
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/acceptance/provider/network_private_network_spec.rb +0 -23
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/lib/vagrant-spec/cli.rb +0 -45
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/lib/vagrant-spec/components.rb +0 -70
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/spec/acceptance/shared/isolated_environment_spec.rb +0 -43
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/vagrant-spec.gemspec +0 -50
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/.gitignore +0 -18
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/.travis.yml +0 -8
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/Gemfile +0 -5
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/LICENSE.txt +0 -373
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/README.md +0 -319
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/Rakefile +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/cli/box_spec.rb +0 -198
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/cli/init_spec.rb +0 -42
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/cli/plugin_spec.rb +0 -156
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/cli/version_spec.rb +0 -15
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/output/box_output.rb +0 -41
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/output/plugin_output.rb +0 -25
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/output/version_output.rb +0 -10
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provider/basic_spec.rb +0 -90
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provider/network_forwarded_port_spec.rb +0 -23
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provider/network_private_network_spec.rb +0 -23
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provider/package_spec.rb +0 -65
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provider/synced_folder_spec.rb +0 -33
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provisioner/chef_solo_spec.rb +0 -31
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provisioner/docker_spec.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provisioner/puppet_spec.rb +0 -31
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/provisioner/shell_spec.rb +0 -45
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-boxes/empty.box +0 -0
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-boxes/empty/metadata.json +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-plugins/README.md +0 -4
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-plugins/vagrant-spec-helper-basic/gem-0.1.0.gemspec +0 -18
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-plugins/vagrant-spec-helper-basic/gem-0.2.0.gemspec +0 -18
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-plugins/vagrant-spec-helper-basic/gem-renamed-0.1.0.gemspec +0 -18
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-plugins/vagrant-spec-helper-basic/lib/vagrant-spec-helper-basic.rb +0 -10
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-plugins/vagrant-spec-helper-basic/lib/vshb/command.rb +0 -7
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/network_forwarded_port/Vagrantfile +0 -5
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/network_private_network/Vagrantfile +0 -5
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_chef_solo/Vagrantfile +0 -14
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_chef_solo/basic-roles/cookbooks/bar/recipes/default.rb +0 -3
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_chef_solo/basic-roles/roles/foo.rb +0 -2
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_chef_solo/basic/cookbooks/foo/recipes/default.rb +0 -3
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_docker/Vagrantfile +0 -5
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_puppet/Vagrantfile +0 -10
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_puppet/basic-modules/manifests/default.pp +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_puppet/basic-modules/modules/foo/manifests/init.pp +0 -5
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_puppet/manifests/default.pp +0 -3
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_shell/Vagrantfile +0 -10
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_shell/args.sh +0 -4
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_shell/path.sh +0 -3
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_shell/user.sh +0 -3
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/provisioner_shell/user_root.sh +0 -3
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/synced_folder_nfs/Vagrantfile +0 -7
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/synced_folder_nfs/foo +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/synced_folder_rsync/Vagrantfile +0 -6
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/synced_folder_rsync/foo +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/synced_folders/Vagrantfile +0 -6
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/support-skeletons/synced_folders/foo +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/synced_folder/nfs_spec.rb +0 -29
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/acceptance/synced_folder/rsync_spec.rb +0 -38
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/bin/vagrant-spec +0 -7
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec.rb +0 -20
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance.rb +0 -29
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/configuration.rb +0 -74
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/isolated_environment.rb +0 -90
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/output.rb +0 -38
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/rspec.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/rspec/context.rb +0 -96
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/rspec/formatter.rb +0 -33
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/rspec/matcher_exit_with.rb +0 -12
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/rspec/matcher_match_output.rb +0 -15
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/rspec/shared_provider_synced_folder.rb +0 -33
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/acceptance/runner.rb +0 -84
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/cli.rb +0 -44
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/components.rb +0 -70
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/isolated_environment.rb +0 -44
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/server.rb +0 -37
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/subprocess.rb +0 -259
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/unit.rb +0 -17
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/unit/dummy_provider.rb +0 -51
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/unit/isolated_environment.rb +0 -230
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/unit/rspec.rb +0 -1
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/unit/rspec/context.rb +0 -104
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/version.rb +0 -5
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/lib/vagrant-spec/which.rb +0 -36
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/acceptance/configuration_spec.rb +0 -25
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/acceptance/isolated_environment_spec.rb +0 -43
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/acceptance/shared/isolated_environment_spec.rb +0 -43
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/acceptance/shared/output_spec.rb +0 -53
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/components_spec.rb +0 -63
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/isolated_environment_spec.rb +0 -31
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/subprocess_spec.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/unit/isolated_environment_spec.rb +0 -64
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/vagrant-spec.gemspec +0 -50
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/objects/pack/pack-d95cb1f984995f857020b8c7be1573cc02e1be74.idx +0 -0
- data/vendor/bundle/ruby/2.4.0/cache/bundler/git/vagrant-spec-7f2ea299b3766e9a077e5bd825aa24cac5a3ef16/objects/pack/pack-d95cb1f984995f857020b8c7be1573cc02e1be74.pack +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.gitignore +0 -7
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.rspec +0 -2
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.travis.yml +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/CONTRIBUTORS.md +0 -19
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile +0 -12
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile.lock +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Guardfile +0 -10
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/README.md +0 -134
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Rakefile +0 -10
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/fake_ftp.gemspec +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp.rb +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/file.rb +0 -34
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/server.rb +0 -340
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/version.rb +0 -3
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/functional/server_spec.rb +0 -468
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/integration/server_spec.rb +0 -81
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/file_spec.rb +0 -102
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/server_spec.rb +0 -76
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/spec_helper.rb +0 -18
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/Gemfile +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/README.md +0 -207
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/changelog.md +0 -60
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/lib/hashdiff/diff.rb +0 -220
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/lib/hashdiff/lcs.rb +0 -69
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/lib/hashdiff/patch.rb +0 -84
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/lib/hashdiff/util.rb +0 -132
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/lib/hashdiff/version.rb +0 -3
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/spec/hashdiff/best_diff_spec.rb +0 -65
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/spec/hashdiff/diff_spec.rb +0 -277
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/spec/hashdiff/patch_spec.rb +0 -161
- data/vendor/bundle/ruby/2.4.0/gems/hashdiff-0.3.4/spec/spec_helper.rb +0 -13
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/Gemfile +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/README.md +0 -242
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/Rakefile +0 -32
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/bin/fsevent_watch +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/ext/fsevent_watch/cli.c +0 -202
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/ext/fsevent_watch/compat.c +0 -25
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/ext/fsevent_watch/compat.h +0 -47
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/ext/fsevent_watch/main.c +0 -509
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/ext/rakefile.rb +0 -224
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb +0 -123
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/version.rb +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/rb-fsevent-0.9.8/rb-fsevent.gemspec +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/README.md +0 -66
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/Rakefile +0 -54
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/VERSION +0 -1
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify.rb +0 -18
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/native.rb +0 -35
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/native/flags.rb +0 -89
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/notifier.rb +0 -332
- data/vendor/bundle/ruby/2.4.0/gems/rb-inotify-0.9.8/rb-inotify.gemspec +0 -54
- data/vendor/bundle/ruby/2.4.0/gems/rspec-2.14.1/License.txt +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-2.14.1/README.md +0 -47
- data/vendor/bundle/ruby/2.4.0/gems/rspec-2.14.1/lib/rspec/version.rb +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/.document +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/.yardopts +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/Changelog.md +0 -912
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/License.txt +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/README.md +0 -261
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/exe/autospec +0 -13
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/exe/rspec +0 -25
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/Autotest.md +0 -38
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/README.md +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/Upgrade.md +0 -364
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/README.md +0 -28
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/example_name_option.feature +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/exit_status.feature +0 -82
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/format_option.feature +0 -75
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/init.feature +0 -18
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/line_number_appended_to_path.feature +0 -140
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/line_number_option.feature +0 -58
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/order.feature +0 -29
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/pattern_option.feature +0 -49
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/rake_task.feature +0 -122
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/require_option.feature +0 -43
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/tag.feature +0 -98
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/warnings_option.feature +0 -29
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/alias_example_to.feature +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/backtrace_clean_patterns.feature +0 -102
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/custom_settings.feature +0 -84
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/default_path.feature +0 -38
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/deprecation_stream.feature +0 -58
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/fail_fast.feature +0 -77
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/failure_exit_code.feature +0 -36
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/order_and_seed.feature +0 -3
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/output_stream.feature +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/pattern.feature +0 -38
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/profile.feature +0 -220
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/read_options_from_file.feature +0 -90
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/run_all_when_everything_filtered.feature +0 -76
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/show_failures_in_pending_blocks.feature +0 -61
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +0 -52
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/example_groups/basic_structure.feature +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/example_groups/shared_context.feature +0 -74
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/example_groups/shared_examples.feature +0 -294
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/expectation_framework_integration/configure_expectation_framework.feature +0 -102
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/filtering/exclusion_filters.feature +0 -138
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/filtering/if_and_unless.feature +0 -168
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/filtering/inclusion_filters.feature +0 -105
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/configurable_colors.feature +0 -31
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/custom_formatter.feature +0 -36
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/json_formatter.feature +0 -30
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature +0 -46
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/helper_methods/arbitrary_methods.feature +0 -40
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/helper_methods/let.feature +0 -50
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/helper_methods/modules.feature +0 -149
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/hooks/around_hooks.feature +0 -343
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/hooks/before_and_after_hooks.feature +0 -427
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/hooks/filtering.feature +0 -234
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/metadata/described_class.feature +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/metadata/user_defined.feature +0 -113
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/mock_framework_integration/use_any_framework.feature +0 -106
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/mock_framework_integration/use_flexmock.feature +0 -96
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/mock_framework_integration/use_mocha.feature +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/mock_framework_integration/use_rr.feature +0 -98
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/mock_framework_integration/use_rspec.feature +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/pending/pending_examples.feature +0 -229
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/spec_files/arbitrary_file_suffix.feature +0 -13
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/step_definitions/additional_cli_steps.rb +0 -49
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/subject/attribute_of_subject.feature +0 -124
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/subject/explicit_subject.feature +0 -101
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/subject/implicit_receiver.feature +0 -29
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/subject/implicit_subject.feature +0 -63
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/support/env.rb +0 -14
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/support/rubinius.rb +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/autotest/discover.rb +0 -1
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/autotest/rspec2.rb +0 -73
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/autorun.rb +0 -2
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core.rb +0 -169
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/backtrace_cleaner.rb +0 -46
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/backward_compatibility.rb +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb +0 -36
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb +0 -1174
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb +0 -156
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/deprecation.rb +0 -31
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/drb_command_line.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/drb_options.rb +0 -87
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/dsl.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb +0 -325
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb +0 -479
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/extensions/kernel.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/extensions/module_eval_with_args.rb +0 -38
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/extensions/ordered.rb +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/filter_manager.rb +0 -203
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters.rb +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/base_formatter.rb +0 -246
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/base_text_formatter.rb +0 -329
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/deprecation_formatter.rb +0 -39
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/documentation_formatter.rb +0 -67
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/helpers.rb +0 -110
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/html_formatter.rb +0 -155
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/html_printer.rb +0 -408
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/json_formatter.rb +0 -70
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/progress_formatter.rb +0 -32
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/snippet_extractor.rb +0 -92
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/formatters/text_mate_formatter.rb +0 -46
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb +0 -519
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/memoized_helpers.rb +0 -514
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/metadata.rb +0 -299
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/metadata_hash_builder.rb +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/mocking/with_absolutely_nothing.rb +0 -11
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/mocking/with_flexmock.rb +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/mocking/with_mocha.rb +0 -52
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/mocking/with_rr.rb +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/mocking/with_rspec.rb +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/option_parser.rb +0 -219
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/pending.rb +0 -113
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/project_initializer.rb +0 -86
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/rake_task.rb +0 -206
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/reporter.rb +0 -132
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/ruby_project.rb +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb +0 -87
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/shared_context.rb +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/shared_example_group.rb +0 -185
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/shared_example_group/collection.rb +0 -43
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/version.rb +0 -8
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/lib/rspec/core/world.rb +0 -127
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb +0 -19
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/autotest/failed_results_re_spec.rb +0 -45
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/autotest/rspec_spec.rb +0 -133
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/command_line/order_spec.rb +0 -204
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/backtrace_cleaner_spec.rb +0 -68
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/command_line_spec.rb +0 -108
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/configuration_options_spec.rb +0 -417
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/configuration_spec.rb +0 -1561
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/deprecation_spec.rb +0 -46
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/deprecations_spec.rb +0 -73
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/drb_command_line_spec.rb +0 -102
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/drb_options_spec.rb +0 -193
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/dsl_spec.rb +0 -25
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/example_group_spec.rb +0 -1187
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/example_spec.rb +0 -465
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/filter_manager_spec.rb +0 -246
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/base_formatter_spec.rb +0 -108
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/base_text_formatter_spec.rb +0 -494
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/deprecation_formatter_spec.rb +0 -96
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/documentation_formatter_spec.rb +0 -88
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/helpers_spec.rb +0 -104
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +0 -404
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +0 -477
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.8.7.html +0 -414
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.9.2.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +0 -404
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +0 -477
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-1.9.3.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatted-2.0.0.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/html_formatter_spec.rb +0 -110
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/json_formatter_spec.rb +0 -115
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb +0 -30
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/snippet_extractor_spec.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +0 -395
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +0 -477
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +0 -414
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +0 -404
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +0 -477
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatted-2.1.0.html +0 -425
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/text_mate_formatter_spec.rb +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/hooks_filtering_spec.rb +0 -227
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/hooks_spec.rb +0 -267
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/kernel_extensions_spec.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/memoized_helpers_spec.rb +0 -688
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/metadata_spec.rb +0 -491
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/option_parser_spec.rb +0 -242
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/pending_example_spec.rb +0 -220
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/project_initializer_spec.rb +0 -130
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/rake_task_spec.rb +0 -181
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/reporter_spec.rb +0 -141
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/resources/a_spec.rb +0 -1
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/resources/custom_example_group_runner.rb +0 -14
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/resources/formatter_specs.rb +0 -60
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/resources/utf8_encoded.rb +0 -8
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/rspec_matchers_spec.rb +0 -45
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/ruby_project_spec.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/runner_spec.rb +0 -82
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/shared_context_spec.rb +0 -114
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/shared_example_group/collection_spec.rb +0 -70
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/shared_example_group_spec.rb +0 -120
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/world_spec.rb +0 -142
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core_spec.rb +0 -74
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/spec_helper.rb +0 -132
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/config_options_helper.rb +0 -15
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/helper_methods.rb +0 -36
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/in_sub_process.rb +0 -37
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/isolate_load_path_mutation.rb +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/isolated_directory.rb +0 -10
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/isolated_home_directory.rb +0 -16
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/matchers.rb +0 -65
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/mathn_integration_support.rb +0 -12
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/sandboxed_mock_space.rb +0 -100
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/shared_example_groups.rb +0 -41
- data/vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/support/spec_files.rb +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/.document +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/.yardopts +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/Changelog.md +0 -426
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/License.txt +0 -23
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/README.md +0 -184
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/README.md +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/Upgrade.md +0 -53
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/README.md +0 -90
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/be.feature +0 -175
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/be_within.feature +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/cover.feature +0 -47
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/end_with.feature +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/equality.feature +0 -139
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/exist.feature +0 -45
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/expect_change.feature +0 -59
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/expect_error.feature +0 -144
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/have.feature +0 -109
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/include.feature +0 -174
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/match.feature +0 -52
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/operators.feature +0 -227
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/predicates.feature +0 -137
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/respond_to.feature +0 -84
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/satisfy.feature +0 -33
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/start_with.feature +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/throw_symbol.feature +0 -91
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/types.feature +0 -116
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/built_in_matchers/yield.feature +0 -161
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/access_running_example.feature +0 -53
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_matcher.feature +0 -368
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_matcher_outside_rspec.feature +0 -38
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_matcher_with_fluent_interface.feature +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/customized_message.feature +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/diffing.feature +0 -85
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/implicit_docstrings.feature +0 -52
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/step_definitions/additional_cli_steps.rb +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/support/env.rb +0 -14
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/support/rubinius.rb +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/syntax_configuration.feature +0 -71
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/test_frameworks/test_unit.feature +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec-expectations.rb +0 -1
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations.rb +0 -73
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/deprecation.rb +0 -31
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/differ.rb +0 -154
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/errors.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/expectation_target.rb +0 -87
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/extensions.rb +0 -2
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/extensions/array.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/extensions/object.rb +0 -29
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/fail_with.rb +0 -79
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/handler.rb +0 -68
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/syntax.rb +0 -164
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/version.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers.rb +0 -694
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/be_close.rb +0 -9
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in.rb +0 -39
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/base_matcher.rb +0 -70
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be.rb +0 -197
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_instance_of.rb +0 -15
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_kind_of.rb +0 -11
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/be_within.rb +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/change.rb +0 -141
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/cover.rb +0 -21
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eq.rb +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/eql.rb +0 -23
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/equal.rb +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/exist.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/has.rb +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/have.rb +0 -124
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/include.rb +0 -61
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/match.rb +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/match_array.rb +0 -51
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/raise_error.rb +0 -127
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/respond_to.rb +0 -74
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/satisfy.rb +0 -30
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/start_and_end_with.rb +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/throw_symbol.rb +0 -94
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/built_in/yield.rb +0 -296
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/compatibility.rb +0 -14
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/configuration.rb +0 -108
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/dsl.rb +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/extensions/instance_eval_with_args.rb +0 -39
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/generated_descriptions.rb +0 -35
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/matcher.rb +0 -300
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/method_missing.rb +0 -12
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/operator_matcher.rb +0 -113
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/pretty.rb +0 -70
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/lib/rspec/matchers/test_unit_integration.rb +0 -11
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations/differ_spec.rb +0 -229
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations/expectation_target_spec.rb +0 -82
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations/extensions/kernel_spec.rb +0 -67
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations/fail_with_spec.rb +0 -114
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations/handler_spec.rb +0 -227
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations/syntax_spec.rb +0 -139
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/expectations_spec.rb +0 -50
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/base_matcher_spec.rb +0 -83
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/be_close_spec.rb +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/be_instance_of_spec.rb +0 -63
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/be_kind_of_spec.rb +0 -41
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/be_spec.rb +0 -522
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/be_within_spec.rb +0 -137
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/change_spec.rb +0 -567
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/configuration_spec.rb +0 -206
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/cover_spec.rb +0 -69
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/description_generation_spec.rb +0 -190
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/dsl_spec.rb +0 -57
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/eq_spec.rb +0 -60
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/eql_spec.rb +0 -41
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/equal_spec.rb +0 -104
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/exist_spec.rb +0 -124
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/has_spec.rb +0 -122
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/have_spec.rb +0 -455
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/include_matcher_integration_spec.rb +0 -30
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/include_spec.rb +0 -531
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/match_array_spec.rb +0 -194
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/match_spec.rb +0 -74
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/matcher_spec.rb +0 -471
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/matchers_spec.rb +0 -37
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/method_missing_spec.rb +0 -28
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/operator_matcher_spec.rb +0 -252
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/raise_error_spec.rb +0 -535
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/respond_to_spec.rb +0 -292
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/satisfy_spec.rb +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/start_with_end_with_spec.rb +0 -186
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/throw_symbol_spec.rb +0 -116
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/rspec/matchers/yield_spec.rb +0 -514
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/spec_helper.rb +0 -54
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/classes.rb +0 -56
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/in_sub_process.rb +0 -38
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/ruby_version.rb +0 -10
- data/vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/shared_examples.rb +0 -13
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/.document +0 -5
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/.yardopts +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/Changelog.md +0 -438
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/License.txt +0 -23
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/README.md +0 -315
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/README.md +0 -67
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/Scope.md +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/Upgrade.md +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/argument_matchers/README.md +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/argument_matchers/explicit.feature +0 -59
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/argument_matchers/general_matchers.feature +0 -85
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/argument_matchers/type_matchers.feature +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/README.md +0 -73
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/allow_any_instance_of.feature +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/any_instance.feature +0 -21
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/block_local_expectations.feature.pending +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/call_original.feature +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/expect_any_instance_of.feature +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/expect_message_using_expect.feature +0 -107
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/expect_message_using_should_receive.feature +0 -118
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/receive_counts.feature +0 -209
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +0 -50
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/README.md +0 -73
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/any_instance.feature +0 -136
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/as_null_object.feature +0 -40
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/simple_return_value_with_allow.feature +0 -44
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/simple_return_value_with_stub.feature +0 -64
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/stub_chain.feature +0 -51
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/stub_implementation.feature +0 -48
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/method_stubs/to_ary.feature +0 -51
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/mutating_constants/README.md +0 -82
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/mutating_constants/hiding_defined_constant.feature +0 -64
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/mutating_constants/stub_defined_constant.feature +0 -79
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/mutating_constants/stub_undefined_constant.feature +0 -50
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/outside_rspec/configuration.feature +0 -62
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/outside_rspec/standalone.feature +0 -33
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/spies/spy_partial_mock_method.feature +0 -34
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/spies/spy_pure_mock_method.feature +0 -76
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/spies/spy_unstubbed_method.feature +0 -18
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/step_definitions/additional_cli_steps.rb +0 -11
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/support/env.rb +0 -13
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/support/rubinius.rb +0 -6
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/test_frameworks/test_unit.feature +0 -43
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks.rb +0 -96
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/chain.rb +0 -94
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -42
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/message_chains.rb +0 -60
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/recorder.rb +0 -208
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/stub_chain.rb +0 -40
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -23
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/argument_list_matcher.rb +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/argument_matchers.rb +0 -238
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/configuration.rb +0 -55
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/deprecation.rb +0 -18
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/error_generator.rb +0 -179
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/errors.rb +0 -12
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/example_methods.rb +0 -156
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/extensions/instance_exec.rb +0 -34
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/extensions/marshal.rb +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/framework.rb +0 -34
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/instance_method_stasher.rb +0 -94
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/matchers/have_received.rb +0 -93
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/matchers/receive.rb +0 -97
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb +0 -600
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/method_double.rb +0 -271
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/mock.rb +0 -7
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/mutate_const.rb +0 -403
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/order_group.rb +0 -40
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/proxy.rb +0 -223
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/proxy_for_nil.rb +0 -37
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/space.rb +0 -92
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/standalone.rb +0 -3
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/stub_chain.rb +0 -51
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/syntax.rb +0 -349
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/targets.rb +0 -69
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/test_double.rb +0 -135
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/rspec/mocks/version.rb +0 -7
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/lib/spec/mocks.rb +0 -4
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/and_call_original_spec.rb +0 -243
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/and_yield_spec.rb +0 -127
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/any_instance/message_chains_spec.rb +0 -41
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/any_instance_spec.rb +0 -1036
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/any_number_of_times_spec.rb +0 -36
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/argument_expectation_spec.rb +0 -32
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/at_least_spec.rb +0 -151
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/at_most_spec.rb +0 -90
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/block_return_value_spec.rb +0 -99
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_10260_spec.rb +0 -8
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_10263_spec.rb +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_11545_spec.rb +0 -32
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_496_spec.rb +0 -17
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_600_spec.rb +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_7611_spec.rb +0 -16
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_8165_spec.rb +0 -31
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_830_spec.rb +0 -21
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/bug_report_957_spec.rb +0 -22
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/combining_implementation_instructions_spec.rb +0 -205
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/configuration_spec.rb +0 -150
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/double_spec.rb +0 -24
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/extensions/marshal_spec.rb +0 -54
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/failing_argument_matchers_spec.rb +0 -110
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/hash_excluding_matcher_spec.rb +0 -67
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/hash_including_matcher_spec.rb +0 -90
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/instance_method_stasher_spec.rb +0 -58
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/matchers/have_received_spec.rb +0 -266
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/matchers/receive_spec.rb +0 -342
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/methods_spec.rb +0 -27
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/mock_ordering_spec.rb +0 -103
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/mock_space_spec.rb +0 -103
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/mock_spec.rb +0 -798
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/multiple_return_value_spec.rb +0 -132
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/mutate_const_spec.rb +0 -501
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/nil_expectation_warning_spec.rb +0 -68
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/null_object_mock_spec.rb +0 -123
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/once_counts_spec.rb +0 -52
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/options_hash_spec.rb +0 -35
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/partial_mock_spec.rb +0 -205
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +0 -95
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/passing_argument_matchers_spec.rb +0 -142
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/precise_counts_spec.rb +0 -68
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/record_messages_spec.rb +0 -26
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/serialization_spec.rb +0 -89
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/space_spec.rb +0 -32
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/stash_spec.rb +0 -46
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/stub_chain_spec.rb +0 -166
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/stub_implementation_spec.rb +0 -81
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/stub_spec.rb +0 -353
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/stubbed_message_expectations_spec.rb +0 -58
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb +0 -81
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/test_double_spec.rb +0 -67
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/to_ary_spec.rb +0 -54
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks/twice_counts_spec.rb +0 -66
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/rspec/mocks_spec.rb +0 -65
- data/vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/spec/spec_helper.rb +0 -60
- data/vendor/bundle/ruby/2.4.0/specifications/fake_ftp-0.1.1.gemspec +0 -20
- data/vendor/bundle/ruby/2.4.0/specifications/hashdiff-0.3.4.gemspec +0 -39
- data/vendor/bundle/ruby/2.4.0/specifications/rb-fsevent-0.9.8.gemspec +0 -38
- data/vendor/bundle/ruby/2.4.0/specifications/rb-inotify-0.9.8.gemspec +0 -36
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-2.14.1.gemspec +0 -42
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-core-2.14.8.gemspec +0 -61
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-expectations-2.14.5.gemspec +0 -43
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-mocks-2.14.6.gemspec +0 -40
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'drb/drb'
|
2
|
+
require 'drb/acl'
|
3
|
+
|
4
|
+
module RSpec
|
5
|
+
module Core
|
6
|
+
# @private
|
7
|
+
module Bisect
|
8
|
+
# @private
|
9
|
+
BisectFailedError = Class.new(StandardError)
|
10
|
+
|
11
|
+
# @private
|
12
|
+
# A DRb server that receives run results from a separate RSpec process
|
13
|
+
# started by the bisect process.
|
14
|
+
class Server
|
15
|
+
def self.run
|
16
|
+
server = new
|
17
|
+
server.start
|
18
|
+
yield server
|
19
|
+
ensure
|
20
|
+
server.stop
|
21
|
+
end
|
22
|
+
|
23
|
+
def capture_run_results(files_or_directories_to_run=[], expected_failures=[])
|
24
|
+
self.expected_failures = expected_failures
|
25
|
+
self.files_or_directories_to_run = files_or_directories_to_run
|
26
|
+
self.latest_run_results = nil
|
27
|
+
run_output = yield
|
28
|
+
latest_run_results || raise_bisect_failed(run_output)
|
29
|
+
end
|
30
|
+
|
31
|
+
def start
|
32
|
+
# Only allow remote DRb requests from this machine.
|
33
|
+
DRb.install_acl ACL.new(%w[ deny all allow localhost allow 127.0.0.1 ])
|
34
|
+
|
35
|
+
# We pass `nil` as the first arg to allow it to pick a DRb port.
|
36
|
+
@drb = DRb.start_service(nil, self)
|
37
|
+
end
|
38
|
+
|
39
|
+
def stop
|
40
|
+
@drb.stop_service
|
41
|
+
end
|
42
|
+
|
43
|
+
def drb_port
|
44
|
+
@drb_port ||= Integer(@drb.uri[/\d+$/])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Fetched via DRb by the BisectFormatter to determine when to abort.
|
48
|
+
attr_accessor :expected_failures
|
49
|
+
|
50
|
+
# Set via DRb by the BisectFormatter with the results of the run.
|
51
|
+
attr_accessor :latest_run_results
|
52
|
+
|
53
|
+
# Fetched via DRb to tell clients which files to run
|
54
|
+
attr_accessor :files_or_directories_to_run
|
55
|
+
|
56
|
+
private
|
57
|
+
|
58
|
+
def raise_bisect_failed(run_output)
|
59
|
+
raise BisectFailedError, "Failed to get results from the spec " \
|
60
|
+
"run. Spec run output:\n\n#{run_output}"
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,2100 @@
|
|
1
|
+
RSpec::Support.require_rspec_core "backtrace_formatter"
|
2
|
+
RSpec::Support.require_rspec_core "ruby_project"
|
3
|
+
RSpec::Support.require_rspec_core "formatters/deprecation_formatter"
|
4
|
+
|
5
|
+
module RSpec
|
6
|
+
module Core
|
7
|
+
# rubocop:disable Metrics/ClassLength
|
8
|
+
|
9
|
+
# Stores runtime configuration information.
|
10
|
+
#
|
11
|
+
# Configuration options are loaded from `~/.rspec`, `.rspec`,
|
12
|
+
# `.rspec-local`, command line switches, and the `SPEC_OPTS` environment
|
13
|
+
# variable (listed in lowest to highest precedence; for example, an option
|
14
|
+
# in `~/.rspec` can be overridden by an option in `.rspec-local`).
|
15
|
+
#
|
16
|
+
# @example Standard settings
|
17
|
+
# RSpec.configure do |c|
|
18
|
+
# c.drb = true
|
19
|
+
# c.drb_port = 1234
|
20
|
+
# c.default_path = 'behavior'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# @example Hooks
|
24
|
+
# RSpec.configure do |c|
|
25
|
+
# c.before(:suite) { establish_connection }
|
26
|
+
# c.before(:example) { log_in_as :authorized }
|
27
|
+
# c.around(:example) { |ex| Database.transaction(&ex) }
|
28
|
+
# end
|
29
|
+
#
|
30
|
+
# @see RSpec.configure
|
31
|
+
# @see Hooks
|
32
|
+
class Configuration
|
33
|
+
include RSpec::Core::Hooks
|
34
|
+
|
35
|
+
# Module that holds `attr_reader` declarations. It's in a separate
|
36
|
+
# module to allow us to override those methods and use `super`.
|
37
|
+
# @private
|
38
|
+
Readers = Module.new
|
39
|
+
include Readers
|
40
|
+
|
41
|
+
# @private
|
42
|
+
class MustBeConfiguredBeforeExampleGroupsError < StandardError; end
|
43
|
+
|
44
|
+
# @private
|
45
|
+
def self.define_reader(name)
|
46
|
+
Readers.class_eval do
|
47
|
+
remove_method name if method_defined?(name)
|
48
|
+
attr_reader name
|
49
|
+
end
|
50
|
+
|
51
|
+
define_method(name) { value_for(name) { super() } }
|
52
|
+
end
|
53
|
+
|
54
|
+
# @private
|
55
|
+
def self.define_aliases(name, alias_name)
|
56
|
+
alias_method alias_name, name
|
57
|
+
alias_method "#{alias_name}=", "#{name}="
|
58
|
+
define_predicate_for alias_name
|
59
|
+
end
|
60
|
+
|
61
|
+
# @private
|
62
|
+
def self.define_predicate_for(*names)
|
63
|
+
names.each { |name| alias_method "#{name}?", name }
|
64
|
+
end
|
65
|
+
|
66
|
+
# @private
|
67
|
+
#
|
68
|
+
# Invoked by the `add_setting` instance method. Use that method on a
|
69
|
+
# `Configuration` instance rather than this class method.
|
70
|
+
def self.add_setting(name, opts={})
|
71
|
+
raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
|
72
|
+
attr_writer name
|
73
|
+
add_read_only_setting name
|
74
|
+
|
75
|
+
Array(opts[:alias_with]).each do |alias_name|
|
76
|
+
define_aliases(name, alias_name)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# @private
|
81
|
+
#
|
82
|
+
# As `add_setting` but only add the reader.
|
83
|
+
def self.add_read_only_setting(name, opts={})
|
84
|
+
raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
|
85
|
+
define_reader name
|
86
|
+
define_predicate_for name
|
87
|
+
end
|
88
|
+
|
89
|
+
# @macro [attach] add_setting
|
90
|
+
# @!attribute [rw] $1
|
91
|
+
# @!method $1=(value)
|
92
|
+
#
|
93
|
+
# @macro [attach] define_reader
|
94
|
+
# @!attribute [r] $1
|
95
|
+
|
96
|
+
# @macro add_setting
|
97
|
+
# Path to use if no path is provided to the `rspec` command (default:
|
98
|
+
# `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to
|
99
|
+
# run all the examples in the `spec` directory.
|
100
|
+
#
|
101
|
+
# @note Other scripts invoking `rspec` indirectly will ignore this
|
102
|
+
# setting.
|
103
|
+
add_read_only_setting :default_path
|
104
|
+
def default_path=(path)
|
105
|
+
project_source_dirs << path
|
106
|
+
@default_path = path
|
107
|
+
end
|
108
|
+
|
109
|
+
# @macro add_setting
|
110
|
+
# Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
|
111
|
+
# server, but you can use tools like spork.
|
112
|
+
add_setting :drb
|
113
|
+
|
114
|
+
# @macro add_setting
|
115
|
+
# The drb_port (default: nil).
|
116
|
+
add_setting :drb_port
|
117
|
+
|
118
|
+
# @macro add_setting
|
119
|
+
# Default: `$stderr`.
|
120
|
+
add_setting :error_stream
|
121
|
+
|
122
|
+
# Indicates if the DSL has been exposed off of modules and `main`.
|
123
|
+
# Default: true
|
124
|
+
def expose_dsl_globally?
|
125
|
+
Core::DSL.exposed_globally?
|
126
|
+
end
|
127
|
+
|
128
|
+
# Use this to expose the core RSpec DSL via `Module` and the `main`
|
129
|
+
# object. It will be set automatically but you can override it to
|
130
|
+
# remove the DSL.
|
131
|
+
# Default: true
|
132
|
+
def expose_dsl_globally=(value)
|
133
|
+
if value
|
134
|
+
Core::DSL.expose_globally!
|
135
|
+
Core::SharedExampleGroup::TopLevelDSL.expose_globally!
|
136
|
+
else
|
137
|
+
Core::DSL.remove_globally!
|
138
|
+
Core::SharedExampleGroup::TopLevelDSL.remove_globally!
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# Determines where deprecation warnings are printed.
|
143
|
+
# Defaults to `$stderr`.
|
144
|
+
# @return [IO, String] IO to write to or filename to write to
|
145
|
+
define_reader :deprecation_stream
|
146
|
+
|
147
|
+
# Determines where deprecation warnings are printed.
|
148
|
+
# @param value [IO, String] IO to write to or filename to write to
|
149
|
+
def deprecation_stream=(value)
|
150
|
+
if @reporter && !value.equal?(@deprecation_stream)
|
151
|
+
warn "RSpec's reporter has already been initialized with " \
|
152
|
+
"#{deprecation_stream.inspect} as the deprecation stream, so your change to "\
|
153
|
+
"`deprecation_stream` will be ignored. You should configure it earlier for " \
|
154
|
+
"it to take effect, or use the `--deprecation-out` CLI option. " \
|
155
|
+
"(Called from #{CallerFilter.first_non_rspec_line})"
|
156
|
+
else
|
157
|
+
@deprecation_stream = value
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# @macro define_reader
|
162
|
+
# The file path to use for persisting example statuses. Necessary for the
|
163
|
+
# `--only-failures` and `--next-failures` CLI options.
|
164
|
+
#
|
165
|
+
# @overload example_status_persistence_file_path
|
166
|
+
# @return [String] the file path
|
167
|
+
# @overload example_status_persistence_file_path=(value)
|
168
|
+
# @param value [String] the file path
|
169
|
+
define_reader :example_status_persistence_file_path
|
170
|
+
|
171
|
+
# Sets the file path to use for persisting example statuses. Necessary for the
|
172
|
+
# `--only-failures` and `--next-failures` CLI options.
|
173
|
+
def example_status_persistence_file_path=(value)
|
174
|
+
@example_status_persistence_file_path = value
|
175
|
+
clear_values_derived_from_example_status_persistence_file_path
|
176
|
+
end
|
177
|
+
|
178
|
+
# @macro define_reader
|
179
|
+
# Indicates if the `--only-failures` (or `--next-failure`) flag is being used.
|
180
|
+
define_reader :only_failures
|
181
|
+
alias_method :only_failures?, :only_failures
|
182
|
+
|
183
|
+
# @private
|
184
|
+
def only_failures_but_not_configured?
|
185
|
+
only_failures? && !example_status_persistence_file_path
|
186
|
+
end
|
187
|
+
|
188
|
+
# @macro add_setting
|
189
|
+
# If specified, indicates the number of failures required before cleaning
|
190
|
+
# up and exit (default: `nil`).
|
191
|
+
add_setting :fail_fast
|
192
|
+
|
193
|
+
# @macro add_setting
|
194
|
+
# Prints the formatter output of your suite without running any
|
195
|
+
# examples or hooks.
|
196
|
+
add_setting :dry_run
|
197
|
+
|
198
|
+
# @macro add_setting
|
199
|
+
# The exit code to return if there are any failures (default: 1).
|
200
|
+
add_setting :failure_exit_code
|
201
|
+
|
202
|
+
# @macro define_reader
|
203
|
+
# Indicates files configured to be required.
|
204
|
+
define_reader :requires
|
205
|
+
|
206
|
+
# @macro define_reader
|
207
|
+
# Returns dirs that have been prepended to the load path by the `-I`
|
208
|
+
# command line option.
|
209
|
+
define_reader :libs
|
210
|
+
|
211
|
+
# @macro add_setting
|
212
|
+
# Determines where RSpec will send its output.
|
213
|
+
# Default: `$stdout`.
|
214
|
+
define_reader :output_stream
|
215
|
+
|
216
|
+
# Set the output stream for reporter.
|
217
|
+
# @attr value [IO] value for output, defaults to $stdout
|
218
|
+
def output_stream=(value)
|
219
|
+
if @reporter && !value.equal?(@output_stream)
|
220
|
+
warn "RSpec's reporter has already been initialized with " \
|
221
|
+
"#{output_stream.inspect} as the output stream, so your change to "\
|
222
|
+
"`output_stream` will be ignored. You should configure it earlier for " \
|
223
|
+
"it to take effect. (Called from #{CallerFilter.first_non_rspec_line})"
|
224
|
+
else
|
225
|
+
@output_stream = value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# @macro define_reader
|
230
|
+
# Load files matching this pattern (default: `'**{,/*/**}/*_spec.rb'`).
|
231
|
+
define_reader :pattern
|
232
|
+
|
233
|
+
# Set pattern to match files to load.
|
234
|
+
# @attr value [String] the filename pattern to filter spec files by
|
235
|
+
def pattern=(value)
|
236
|
+
update_pattern_attr :pattern, value
|
237
|
+
end
|
238
|
+
|
239
|
+
# @macro define_reader
|
240
|
+
# Exclude files matching this pattern.
|
241
|
+
define_reader :exclude_pattern
|
242
|
+
|
243
|
+
# Set pattern to match files to exclude.
|
244
|
+
# @attr value [String] the filename pattern to exclude spec files by
|
245
|
+
def exclude_pattern=(value)
|
246
|
+
update_pattern_attr :exclude_pattern, value
|
247
|
+
end
|
248
|
+
|
249
|
+
# @macro add_setting
|
250
|
+
# Specifies which directories contain the source code for your project.
|
251
|
+
# When a failure occurs, RSpec looks through the backtrace to find a
|
252
|
+
# a line of source to print. It first looks for a line coming from
|
253
|
+
# one of the project source directories so that, for example, it prints
|
254
|
+
# the expectation or assertion call rather than the source code from
|
255
|
+
# the expectation or assertion framework.
|
256
|
+
# @return [Array<String>]
|
257
|
+
add_setting :project_source_dirs
|
258
|
+
|
259
|
+
# @macro add_setting
|
260
|
+
# Report the times for the slowest examples (default: `false`).
|
261
|
+
# Use this to specify the number of examples to include in the profile.
|
262
|
+
add_setting :profile_examples
|
263
|
+
|
264
|
+
# @macro add_setting
|
265
|
+
# Run all examples if none match the configured filters
|
266
|
+
# (default: `false`).
|
267
|
+
# @deprecated Use {#filter_run_when_matching} instead for the specific
|
268
|
+
# filters that you want to be ignored if none match.
|
269
|
+
add_setting :run_all_when_everything_filtered
|
270
|
+
|
271
|
+
# @macro add_setting
|
272
|
+
# Color to use to indicate success.
|
273
|
+
# @param color [Symbol] defaults to `:green` but can be set to one of the
|
274
|
+
# following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
|
275
|
+
# :cyan]`
|
276
|
+
add_setting :success_color
|
277
|
+
|
278
|
+
# @macro add_setting
|
279
|
+
# Color to use to print pending examples.
|
280
|
+
# @param color [Symbol] defaults to `:yellow` but can be set to one of the
|
281
|
+
# following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
|
282
|
+
# :cyan]`
|
283
|
+
add_setting :pending_color
|
284
|
+
|
285
|
+
# @macro add_setting
|
286
|
+
# Color to use to indicate failure.
|
287
|
+
# @param color [Symbol] defaults to `:red` but can be set to one of the
|
288
|
+
# following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
|
289
|
+
# :cyan]`
|
290
|
+
add_setting :failure_color
|
291
|
+
|
292
|
+
# @macro add_setting
|
293
|
+
# The default output color.
|
294
|
+
# @param color [Symbol] defaults to `:white` but can be set to one of the
|
295
|
+
# following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
|
296
|
+
# :cyan]`
|
297
|
+
add_setting :default_color
|
298
|
+
|
299
|
+
# @macro add_setting
|
300
|
+
# Color used when a pending example is fixed.
|
301
|
+
# @param color [Symbol] defaults to `:blue` but can be set to one of the
|
302
|
+
# following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
|
303
|
+
# :cyan]`
|
304
|
+
add_setting :fixed_color
|
305
|
+
|
306
|
+
# @macro add_setting
|
307
|
+
# Color used to print details.
|
308
|
+
# @param color [Symbol] defaults to `:cyan` but can be set to one of the
|
309
|
+
# following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
|
310
|
+
# :cyan]`
|
311
|
+
add_setting :detail_color
|
312
|
+
|
313
|
+
# @macro add_setting
|
314
|
+
# Don't print filter info i.e. "Run options: include {:focus=>true}"
|
315
|
+
# (default `false`).
|
316
|
+
add_setting :silence_filter_announcements
|
317
|
+
|
318
|
+
# Deprecated. This config option was added in RSpec 2 to pave the way
|
319
|
+
# for this being the default behavior in RSpec 3. Now this option is
|
320
|
+
# a no-op.
|
321
|
+
def treat_symbols_as_metadata_keys_with_true_values=(_value)
|
322
|
+
RSpec.deprecate(
|
323
|
+
"RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values=",
|
324
|
+
:message => "RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= " \
|
325
|
+
"is deprecated, it is now set to true as default and " \
|
326
|
+
"setting it to false has no effect."
|
327
|
+
)
|
328
|
+
end
|
329
|
+
|
330
|
+
# @macro define_reader
|
331
|
+
# Configures how RSpec treats metadata passed as part of a shared example
|
332
|
+
# group definition. For example, given this shared example group definition:
|
333
|
+
#
|
334
|
+
# RSpec.shared_context "uses DB", :db => true do
|
335
|
+
# around(:example) do |ex|
|
336
|
+
# MyORM.transaction(:rollback => true, &ex)
|
337
|
+
# end
|
338
|
+
# end
|
339
|
+
#
|
340
|
+
# ...there are two ways RSpec can treat the `:db => true` metadata, each
|
341
|
+
# of which has a corresponding config option:
|
342
|
+
#
|
343
|
+
# 1. `:trigger_inclusion`: this shared context will be implicitly included
|
344
|
+
# in any groups (or examples) that have `:db => true` metadata.
|
345
|
+
# 2. `:apply_to_host_groups`: the metadata will be inherited by the metadata
|
346
|
+
# hash of all host groups and examples.
|
347
|
+
#
|
348
|
+
# `:trigger_inclusion` is the legacy behavior from before RSpec 3.5 but should
|
349
|
+
# be considered deprecated. Instead, you can explicitly include a group with
|
350
|
+
# `include_context`:
|
351
|
+
#
|
352
|
+
# RSpec.describe "My model" do
|
353
|
+
# include_context "uses DB"
|
354
|
+
# end
|
355
|
+
#
|
356
|
+
# ...or you can configure RSpec to include the context based on matching metadata
|
357
|
+
# using an API that mirrors configured module inclusion:
|
358
|
+
#
|
359
|
+
# RSpec.configure do |rspec|
|
360
|
+
# rspec.include_context "uses DB", :db => true
|
361
|
+
# end
|
362
|
+
#
|
363
|
+
# `:apply_to_host_groups` is a new feature of RSpec 3.5 and will be the only
|
364
|
+
# supported behavior in RSpec 4.
|
365
|
+
#
|
366
|
+
# @overload shared_context_metadata_behavior
|
367
|
+
# @return [:trigger_inclusion, :apply_to_host_groups] the configured behavior
|
368
|
+
# @overload shared_context_metadata_behavior=(value)
|
369
|
+
# @param value [:trigger_inclusion, :apply_to_host_groups] sets the configured behavior
|
370
|
+
define_reader :shared_context_metadata_behavior
|
371
|
+
# @see shared_context_metadata_behavior
|
372
|
+
def shared_context_metadata_behavior=(value)
|
373
|
+
case value
|
374
|
+
when :trigger_inclusion, :apply_to_host_groups
|
375
|
+
@shared_context_metadata_behavior = value
|
376
|
+
else
|
377
|
+
raise ArgumentError, "Cannot set `RSpec.configuration." \
|
378
|
+
"shared_context_metadata_behavior` to `#{value.inspect}`. Only " \
|
379
|
+
"`:trigger_inclusion` and `:apply_to_host_groups` are valid values."
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
# Record the start time of the spec suite to measure load time.
|
384
|
+
add_setting :start_time
|
385
|
+
|
386
|
+
# @macro add_setting
|
387
|
+
# Use threadsafe options where available.
|
388
|
+
# Currently this will place a mutex around memoized values such as let blocks.
|
389
|
+
add_setting :threadsafe
|
390
|
+
|
391
|
+
# @macro add_setting
|
392
|
+
# Maximum count of failed source lines to display in the failure reports.
|
393
|
+
# (default `10`).
|
394
|
+
add_setting :max_displayed_failure_line_count
|
395
|
+
|
396
|
+
# @private
|
397
|
+
add_setting :tty
|
398
|
+
# @private
|
399
|
+
attr_writer :files_to_run
|
400
|
+
# @private
|
401
|
+
attr_accessor :filter_manager, :world
|
402
|
+
# @private
|
403
|
+
attr_accessor :static_config_filter_manager
|
404
|
+
# @private
|
405
|
+
attr_reader :backtrace_formatter, :ordering_manager, :loaded_spec_files
|
406
|
+
|
407
|
+
# rubocop:disable Metrics/AbcSize
|
408
|
+
# rubocop:disable Metrics/MethodLength
|
409
|
+
def initialize
|
410
|
+
# rubocop:disable Style/GlobalVars
|
411
|
+
@start_time = $_rspec_core_load_started_at || ::RSpec::Core::Time.now
|
412
|
+
# rubocop:enable Style/GlobalVars
|
413
|
+
@expectation_frameworks = []
|
414
|
+
@include_modules = FilterableItemRepository::QueryOptimized.new(:any?)
|
415
|
+
@extend_modules = FilterableItemRepository::QueryOptimized.new(:any?)
|
416
|
+
@prepend_modules = FilterableItemRepository::QueryOptimized.new(:any?)
|
417
|
+
|
418
|
+
@before_suite_hooks = []
|
419
|
+
@after_suite_hooks = []
|
420
|
+
|
421
|
+
@mock_framework = nil
|
422
|
+
@files_or_directories_to_run = []
|
423
|
+
@loaded_spec_files = Set.new
|
424
|
+
@color = false
|
425
|
+
@pattern = '**{,/*/**}/*_spec.rb'
|
426
|
+
@exclude_pattern = ''
|
427
|
+
@failure_exit_code = 1
|
428
|
+
@spec_files_loaded = false
|
429
|
+
|
430
|
+
@backtrace_formatter = BacktraceFormatter.new
|
431
|
+
|
432
|
+
@default_path = 'spec'
|
433
|
+
@project_source_dirs = %w[ spec lib app ]
|
434
|
+
@deprecation_stream = $stderr
|
435
|
+
@output_stream = $stdout
|
436
|
+
@reporter = nil
|
437
|
+
@reporter_buffer = nil
|
438
|
+
@filter_manager = FilterManager.new
|
439
|
+
@static_config_filter_manager = FilterManager.new
|
440
|
+
@ordering_manager = Ordering::ConfigurationManager.new
|
441
|
+
@preferred_options = {}
|
442
|
+
@failure_color = :red
|
443
|
+
@success_color = :green
|
444
|
+
@pending_color = :yellow
|
445
|
+
@default_color = :white
|
446
|
+
@fixed_color = :blue
|
447
|
+
@detail_color = :cyan
|
448
|
+
@profile_examples = false
|
449
|
+
@requires = []
|
450
|
+
@libs = []
|
451
|
+
@derived_metadata_blocks = FilterableItemRepository::QueryOptimized.new(:any?)
|
452
|
+
@threadsafe = true
|
453
|
+
@max_displayed_failure_line_count = 10
|
454
|
+
@world = World::Null
|
455
|
+
@shared_context_metadata_behavior = :trigger_inclusion
|
456
|
+
|
457
|
+
define_built_in_hooks
|
458
|
+
end
|
459
|
+
# rubocop:enable Metrics/MethodLength
|
460
|
+
# rubocop:enable Metrics/AbcSize
|
461
|
+
|
462
|
+
# @private
|
463
|
+
#
|
464
|
+
# Used to set higher priority option values from the command line.
|
465
|
+
def force(hash)
|
466
|
+
ordering_manager.force(hash)
|
467
|
+
@preferred_options.merge!(hash)
|
468
|
+
|
469
|
+
return unless hash.key?(:example_status_persistence_file_path)
|
470
|
+
clear_values_derived_from_example_status_persistence_file_path
|
471
|
+
end
|
472
|
+
|
473
|
+
# @private
|
474
|
+
def reset
|
475
|
+
@spec_files_loaded = false
|
476
|
+
@reporter = nil
|
477
|
+
@formatter_loader = nil
|
478
|
+
end
|
479
|
+
|
480
|
+
# @private
|
481
|
+
def reset_filters
|
482
|
+
self.filter_manager = FilterManager.new
|
483
|
+
filter_manager.include_only(
|
484
|
+
Metadata.deep_hash_dup(static_config_filter_manager.inclusions.rules)
|
485
|
+
)
|
486
|
+
filter_manager.exclude_only(
|
487
|
+
Metadata.deep_hash_dup(static_config_filter_manager.exclusions.rules)
|
488
|
+
)
|
489
|
+
end
|
490
|
+
|
491
|
+
# @overload add_setting(name)
|
492
|
+
# @overload add_setting(name, opts)
|
493
|
+
# @option opts [Symbol] :default
|
494
|
+
#
|
495
|
+
# Set a default value for the generated getter and predicate methods:
|
496
|
+
#
|
497
|
+
# add_setting(:foo, :default => "default value")
|
498
|
+
#
|
499
|
+
# @option opts [Symbol] :alias_with
|
500
|
+
#
|
501
|
+
# Use `:alias_with` to alias the setter, getter, and predicate to
|
502
|
+
# another name, or names:
|
503
|
+
#
|
504
|
+
# add_setting(:foo, :alias_with => :bar)
|
505
|
+
# add_setting(:foo, :alias_with => [:bar, :baz])
|
506
|
+
#
|
507
|
+
# Adds a custom setting to the RSpec.configuration object.
|
508
|
+
#
|
509
|
+
# RSpec.configuration.add_setting :foo
|
510
|
+
#
|
511
|
+
# Used internally and by extension frameworks like rspec-rails, so they
|
512
|
+
# can add config settings that are domain specific. For example:
|
513
|
+
#
|
514
|
+
# RSpec.configure do |c|
|
515
|
+
# c.add_setting :use_transactional_fixtures,
|
516
|
+
# :default => true,
|
517
|
+
# :alias_with => :use_transactional_examples
|
518
|
+
# end
|
519
|
+
#
|
520
|
+
# `add_setting` creates three methods on the configuration object, a
|
521
|
+
# setter, a getter, and a predicate:
|
522
|
+
#
|
523
|
+
# RSpec.configuration.foo=(value)
|
524
|
+
# RSpec.configuration.foo
|
525
|
+
# RSpec.configuration.foo? # Returns true if foo returns anything but nil or false.
|
526
|
+
def add_setting(name, opts={})
|
527
|
+
default = opts.delete(:default)
|
528
|
+
(class << self; self; end).class_exec do
|
529
|
+
add_setting(name, opts)
|
530
|
+
end
|
531
|
+
__send__("#{name}=", default) if default
|
532
|
+
end
|
533
|
+
|
534
|
+
# Returns the configured mock framework adapter module.
|
535
|
+
def mock_framework
|
536
|
+
if @mock_framework.nil?
|
537
|
+
begin
|
538
|
+
mock_with :rspec
|
539
|
+
rescue LoadError
|
540
|
+
mock_with :nothing
|
541
|
+
end
|
542
|
+
end
|
543
|
+
@mock_framework
|
544
|
+
end
|
545
|
+
|
546
|
+
# Delegates to mock_framework=(framework).
|
547
|
+
def mock_framework=(framework)
|
548
|
+
mock_with framework
|
549
|
+
end
|
550
|
+
|
551
|
+
# Regexps used to exclude lines from backtraces.
|
552
|
+
#
|
553
|
+
# Excludes lines from ruby (and jruby) source, installed gems, anything
|
554
|
+
# in any "bin" directory, and any of the RSpec libs (outside gem
|
555
|
+
# installs) by default.
|
556
|
+
#
|
557
|
+
# You can modify the list via the getter, or replace it with the setter.
|
558
|
+
#
|
559
|
+
# To override this behaviour and display a full backtrace, use
|
560
|
+
# `--backtrace` on the command line, in a `.rspec` file, or in the
|
561
|
+
# `rspec_options` attribute of RSpec's rake task.
|
562
|
+
def backtrace_exclusion_patterns
|
563
|
+
@backtrace_formatter.exclusion_patterns
|
564
|
+
end
|
565
|
+
|
566
|
+
# Set regular expressions used to exclude lines in backtrace.
|
567
|
+
# @param patterns [Regexp] set the backtrace exlusion pattern
|
568
|
+
def backtrace_exclusion_patterns=(patterns)
|
569
|
+
@backtrace_formatter.exclusion_patterns = patterns
|
570
|
+
end
|
571
|
+
|
572
|
+
# Regexps used to include lines in backtraces.
|
573
|
+
#
|
574
|
+
# Defaults to [Regexp.new Dir.getwd].
|
575
|
+
#
|
576
|
+
# Lines that match an exclusion _and_ an inclusion pattern
|
577
|
+
# will be included.
|
578
|
+
#
|
579
|
+
# You can modify the list via the getter, or replace it with the setter.
|
580
|
+
def backtrace_inclusion_patterns
|
581
|
+
@backtrace_formatter.inclusion_patterns
|
582
|
+
end
|
583
|
+
|
584
|
+
# Set regular expressions used to include lines in backtrace.
|
585
|
+
# @attr patterns [Regexp] set backtrace_formatter inclusion_patterns
|
586
|
+
def backtrace_inclusion_patterns=(patterns)
|
587
|
+
@backtrace_formatter.inclusion_patterns = patterns
|
588
|
+
end
|
589
|
+
|
590
|
+
# Adds {#backtrace_exclusion_patterns} that will filter lines from
|
591
|
+
# the named gems from backtraces.
|
592
|
+
#
|
593
|
+
# @param gem_names [Array<String>] Names of the gems to filter
|
594
|
+
#
|
595
|
+
# @example
|
596
|
+
# RSpec.configure do |config|
|
597
|
+
# config.filter_gems_from_backtrace "rack", "rake"
|
598
|
+
# end
|
599
|
+
#
|
600
|
+
# @note The patterns this adds will match the named gems in their common
|
601
|
+
# locations (e.g. system gems, vendored with bundler, installed as a
|
602
|
+
# :git dependency with bundler, etc) but is not guaranteed to work for
|
603
|
+
# all possible gem locations. For example, if you have the gem source
|
604
|
+
# in a directory with a completely unrelated name, and use bundler's
|
605
|
+
# :path option, this will not filter it.
|
606
|
+
def filter_gems_from_backtrace(*gem_names)
|
607
|
+
gem_names.each do |name|
|
608
|
+
@backtrace_formatter.filter_gem(name)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
# @private
|
613
|
+
MOCKING_ADAPTERS = {
|
614
|
+
:rspec => :RSpec,
|
615
|
+
:flexmock => :Flexmock,
|
616
|
+
:rr => :RR,
|
617
|
+
:mocha => :Mocha,
|
618
|
+
:nothing => :Null
|
619
|
+
}
|
620
|
+
|
621
|
+
# Sets the mock framework adapter module.
|
622
|
+
#
|
623
|
+
# `framework` can be a Symbol or a Module.
|
624
|
+
#
|
625
|
+
# Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the
|
626
|
+
# named framework.
|
627
|
+
#
|
628
|
+
# Given `:nothing`, configures no framework. Use this if you don't use
|
629
|
+
# any mocking framework to save a little bit of overhead.
|
630
|
+
#
|
631
|
+
# Given a Module, includes that module in every example group. The module
|
632
|
+
# should adhere to RSpec's mock framework adapter API:
|
633
|
+
#
|
634
|
+
# setup_mocks_for_rspec
|
635
|
+
# - called before each example
|
636
|
+
#
|
637
|
+
# verify_mocks_for_rspec
|
638
|
+
# - called after each example if the example hasn't yet failed.
|
639
|
+
# Framework should raise an exception when expectations fail
|
640
|
+
#
|
641
|
+
# teardown_mocks_for_rspec
|
642
|
+
# - called after verify_mocks_for_rspec (even if there are errors)
|
643
|
+
#
|
644
|
+
# If the module responds to `configuration` and `mock_with` receives a
|
645
|
+
# block, it will yield the configuration object to the block e.g.
|
646
|
+
#
|
647
|
+
# config.mock_with OtherMockFrameworkAdapter do |mod_config|
|
648
|
+
# mod_config.custom_setting = true
|
649
|
+
# end
|
650
|
+
def mock_with(framework)
|
651
|
+
framework_module =
|
652
|
+
if framework.is_a?(Module)
|
653
|
+
framework
|
654
|
+
else
|
655
|
+
const_name = MOCKING_ADAPTERS.fetch(framework) do
|
656
|
+
raise ArgumentError,
|
657
|
+
"Unknown mocking framework: #{framework.inspect}. " \
|
658
|
+
"Pass a module or one of #{MOCKING_ADAPTERS.keys.inspect}"
|
659
|
+
end
|
660
|
+
|
661
|
+
RSpec::Support.require_rspec_core "mocking_adapters/#{const_name.to_s.downcase}"
|
662
|
+
RSpec::Core::MockingAdapters.const_get(const_name)
|
663
|
+
end
|
664
|
+
|
665
|
+
new_name, old_name = [framework_module, @mock_framework].map do |mod|
|
666
|
+
mod.respond_to?(:framework_name) ? mod.framework_name : :unnamed
|
667
|
+
end
|
668
|
+
|
669
|
+
unless new_name == old_name
|
670
|
+
assert_no_example_groups_defined(:mock_framework)
|
671
|
+
end
|
672
|
+
|
673
|
+
if block_given?
|
674
|
+
raise "#{framework_module} must respond to `configuration` so that " \
|
675
|
+
"mock_with can yield it." unless framework_module.respond_to?(:configuration)
|
676
|
+
yield framework_module.configuration
|
677
|
+
end
|
678
|
+
|
679
|
+
@mock_framework = framework_module
|
680
|
+
end
|
681
|
+
|
682
|
+
# Returns the configured expectation framework adapter module(s)
|
683
|
+
def expectation_frameworks
|
684
|
+
if @expectation_frameworks.empty?
|
685
|
+
begin
|
686
|
+
expect_with :rspec
|
687
|
+
rescue LoadError
|
688
|
+
expect_with Module.new
|
689
|
+
end
|
690
|
+
end
|
691
|
+
@expectation_frameworks
|
692
|
+
end
|
693
|
+
|
694
|
+
# Delegates to expect_with(framework).
|
695
|
+
def expectation_framework=(framework)
|
696
|
+
expect_with(framework)
|
697
|
+
end
|
698
|
+
|
699
|
+
# Sets the expectation framework module(s) to be included in each example
|
700
|
+
# group.
|
701
|
+
#
|
702
|
+
# `frameworks` can be `:rspec`, `:test_unit`, `:minitest`, a custom
|
703
|
+
# module, or any combination thereof:
|
704
|
+
#
|
705
|
+
# config.expect_with :rspec
|
706
|
+
# config.expect_with :test_unit
|
707
|
+
# config.expect_with :minitest
|
708
|
+
# config.expect_with :rspec, :minitest
|
709
|
+
# config.expect_with OtherExpectationFramework
|
710
|
+
#
|
711
|
+
# RSpec will translate `:rspec`, `:minitest`, and `:test_unit` into the
|
712
|
+
# appropriate modules.
|
713
|
+
#
|
714
|
+
# ## Configuration
|
715
|
+
#
|
716
|
+
# If the module responds to `configuration`, `expect_with` will
|
717
|
+
# yield the `configuration` object if given a block:
|
718
|
+
#
|
719
|
+
# config.expect_with OtherExpectationFramework do |custom_config|
|
720
|
+
# custom_config.custom_setting = true
|
721
|
+
# end
|
722
|
+
def expect_with(*frameworks)
|
723
|
+
modules = frameworks.map do |framework|
|
724
|
+
case framework
|
725
|
+
when Module
|
726
|
+
framework
|
727
|
+
when :rspec
|
728
|
+
require 'rspec/expectations'
|
729
|
+
|
730
|
+
# Tag this exception class so our exception formatting logic knows
|
731
|
+
# that it satisfies the `MultipleExceptionError` interface.
|
732
|
+
::RSpec::Expectations::MultipleExpectationsNotMetError.__send__(
|
733
|
+
:include, MultipleExceptionError::InterfaceTag
|
734
|
+
)
|
735
|
+
|
736
|
+
::RSpec::Matchers
|
737
|
+
when :test_unit
|
738
|
+
require 'rspec/core/test_unit_assertions_adapter'
|
739
|
+
::RSpec::Core::TestUnitAssertionsAdapter
|
740
|
+
when :minitest
|
741
|
+
require 'rspec/core/minitest_assertions_adapter'
|
742
|
+
::RSpec::Core::MinitestAssertionsAdapter
|
743
|
+
else
|
744
|
+
raise ArgumentError, "#{framework.inspect} is not supported"
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
if (modules - @expectation_frameworks).any?
|
749
|
+
assert_no_example_groups_defined(:expect_with)
|
750
|
+
end
|
751
|
+
|
752
|
+
if block_given?
|
753
|
+
raise "expect_with only accepts a block with a single argument. " \
|
754
|
+
"Call expect_with #{modules.length} times, " \
|
755
|
+
"once with each argument, instead." if modules.length > 1
|
756
|
+
raise "#{modules.first} must respond to `configuration` so that " \
|
757
|
+
"expect_with can yield it." unless modules.first.respond_to?(:configuration)
|
758
|
+
yield modules.first.configuration
|
759
|
+
end
|
760
|
+
|
761
|
+
@expectation_frameworks.push(*modules)
|
762
|
+
end
|
763
|
+
|
764
|
+
# Check if full backtrace is enabled.
|
765
|
+
# @return [Boolean] is full backtrace enabled
|
766
|
+
def full_backtrace?
|
767
|
+
@backtrace_formatter.full_backtrace?
|
768
|
+
end
|
769
|
+
|
770
|
+
# Toggle full backtrace.
|
771
|
+
# @attr true_or_false [Boolean] toggle full backtrace display
|
772
|
+
def full_backtrace=(true_or_false)
|
773
|
+
@backtrace_formatter.full_backtrace = true_or_false
|
774
|
+
end
|
775
|
+
|
776
|
+
# Returns the configuration option for color, but should not
|
777
|
+
# be used to check if color is supported.
|
778
|
+
#
|
779
|
+
# @see color_enabled?
|
780
|
+
# @return [Boolean]
|
781
|
+
def color
|
782
|
+
value_for(:color) { @color }
|
783
|
+
end
|
784
|
+
|
785
|
+
# Check if color is enabled for a particular output.
|
786
|
+
# @param output [IO] an output stream to use, defaults to the current
|
787
|
+
# `output_stream`
|
788
|
+
# @return [Boolean]
|
789
|
+
def color_enabled?(output=output_stream)
|
790
|
+
output_to_tty?(output) && color
|
791
|
+
end
|
792
|
+
|
793
|
+
# Toggle output color.
|
794
|
+
attr_writer :color
|
795
|
+
|
796
|
+
# @private
|
797
|
+
def libs=(libs)
|
798
|
+
libs.map do |lib|
|
799
|
+
@libs.unshift lib
|
800
|
+
$LOAD_PATH.unshift lib
|
801
|
+
end
|
802
|
+
end
|
803
|
+
|
804
|
+
# Run examples matching on `description` in all files to run.
|
805
|
+
# @param description [String, Regexp] the pattern to filter on
|
806
|
+
def full_description=(description)
|
807
|
+
filter_run :full_description => Regexp.union(*Array(description).map { |d| Regexp.new(d) })
|
808
|
+
end
|
809
|
+
|
810
|
+
# @return [Array] full description filter
|
811
|
+
def full_description
|
812
|
+
filter.fetch :full_description, nil
|
813
|
+
end
|
814
|
+
|
815
|
+
# @overload add_formatter(formatter)
|
816
|
+
#
|
817
|
+
# Adds a formatter to the formatters collection. `formatter` can be a
|
818
|
+
# string representing any of the built-in formatters (see
|
819
|
+
# `built_in_formatter`), or a custom formatter class.
|
820
|
+
#
|
821
|
+
# ### Note
|
822
|
+
#
|
823
|
+
# For internal purposes, `add_formatter` also accepts the name of a class
|
824
|
+
# and paths to use for output streams, but you should consider that a
|
825
|
+
# private api that may change at any time without notice.
|
826
|
+
def add_formatter(formatter_to_use, *paths)
|
827
|
+
paths << output_stream if paths.empty?
|
828
|
+
formatter_loader.add formatter_to_use, *paths
|
829
|
+
end
|
830
|
+
alias_method :formatter=, :add_formatter
|
831
|
+
|
832
|
+
# The formatter that will be used if no formatter has been set.
|
833
|
+
# Defaults to 'progress'.
|
834
|
+
def default_formatter
|
835
|
+
formatter_loader.default_formatter
|
836
|
+
end
|
837
|
+
|
838
|
+
# Sets a fallback formatter to use if none other has been set.
|
839
|
+
#
|
840
|
+
# @example
|
841
|
+
#
|
842
|
+
# RSpec.configure do |rspec|
|
843
|
+
# rspec.default_formatter = 'doc'
|
844
|
+
# end
|
845
|
+
def default_formatter=(value)
|
846
|
+
formatter_loader.default_formatter = value
|
847
|
+
end
|
848
|
+
|
849
|
+
# Returns a duplicate of the formatters currently loaded in
|
850
|
+
# the `FormatterLoader` for introspection.
|
851
|
+
#
|
852
|
+
# Note as this is a duplicate, any mutations will be disregarded.
|
853
|
+
#
|
854
|
+
# @return [Array] the formatters currently loaded
|
855
|
+
def formatters
|
856
|
+
formatter_loader.formatters.dup
|
857
|
+
end
|
858
|
+
|
859
|
+
# @private
|
860
|
+
def formatter_loader
|
861
|
+
@formatter_loader ||= Formatters::Loader.new(Reporter.new(self))
|
862
|
+
end
|
863
|
+
|
864
|
+
# @private
|
865
|
+
#
|
866
|
+
# This buffer is used to capture all messages sent to the reporter during
|
867
|
+
# reporter initialization. It can then replay those messages after the
|
868
|
+
# formatter is correctly initialized. Otherwise, deprecation warnings
|
869
|
+
# during formatter initialization can cause an infinite loop.
|
870
|
+
class DeprecationReporterBuffer
|
871
|
+
def initialize
|
872
|
+
@calls = []
|
873
|
+
end
|
874
|
+
|
875
|
+
def deprecation(*args)
|
876
|
+
@calls << args
|
877
|
+
end
|
878
|
+
|
879
|
+
def play_onto(reporter)
|
880
|
+
@calls.each do |args|
|
881
|
+
reporter.deprecation(*args)
|
882
|
+
end
|
883
|
+
end
|
884
|
+
end
|
885
|
+
|
886
|
+
# @return [RSpec::Core::Reporter] the currently configured reporter
|
887
|
+
def reporter
|
888
|
+
# @reporter_buffer should only ever be set in this method to cover
|
889
|
+
# initialization of @reporter.
|
890
|
+
@reporter_buffer || @reporter ||=
|
891
|
+
begin
|
892
|
+
@reporter_buffer = DeprecationReporterBuffer.new
|
893
|
+
formatter_loader.setup_default output_stream, deprecation_stream
|
894
|
+
@reporter_buffer.play_onto(formatter_loader.reporter)
|
895
|
+
@reporter_buffer = nil
|
896
|
+
formatter_loader.reporter
|
897
|
+
end
|
898
|
+
end
|
899
|
+
|
900
|
+
# @api private
|
901
|
+
#
|
902
|
+
# Defaults `profile_examples` to 10 examples when `@profile_examples` is
|
903
|
+
# `true`.
|
904
|
+
def profile_examples
|
905
|
+
profile = value_for(:profile_examples) { @profile_examples }
|
906
|
+
if profile && !profile.is_a?(Integer)
|
907
|
+
10
|
908
|
+
else
|
909
|
+
profile
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
913
|
+
# @private
|
914
|
+
def files_or_directories_to_run=(*files)
|
915
|
+
files = files.flatten
|
916
|
+
|
917
|
+
if (command == 'rspec' || Runner.running_in_drb?) && default_path && files.empty?
|
918
|
+
files << default_path
|
919
|
+
end
|
920
|
+
|
921
|
+
@files_or_directories_to_run = files
|
922
|
+
@files_to_run = nil
|
923
|
+
end
|
924
|
+
|
925
|
+
# The spec files RSpec will run.
|
926
|
+
# @return [Array] specified files about to run
|
927
|
+
def files_to_run
|
928
|
+
@files_to_run ||= get_files_to_run(@files_or_directories_to_run)
|
929
|
+
end
|
930
|
+
|
931
|
+
# @private
|
932
|
+
def last_run_statuses
|
933
|
+
@last_run_statuses ||= Hash.new(UNKNOWN_STATUS).tap do |statuses|
|
934
|
+
if (path = example_status_persistence_file_path)
|
935
|
+
begin
|
936
|
+
ExampleStatusPersister.load_from(path).inject(statuses) do |hash, example|
|
937
|
+
hash[example.fetch(:example_id)] = example.fetch(:status)
|
938
|
+
hash
|
939
|
+
end
|
940
|
+
rescue SystemCallError => e
|
941
|
+
RSpec.warning "Could not read from #{path.inspect} (configured as " \
|
942
|
+
"`config.example_status_persistence_file_path`) due " \
|
943
|
+
"to a system error: #{e.inspect}. Please check that " \
|
944
|
+
"the config option is set to an accessible, valid " \
|
945
|
+
"file path", :call_site => nil
|
946
|
+
end
|
947
|
+
end
|
948
|
+
end
|
949
|
+
end
|
950
|
+
|
951
|
+
# @private
|
952
|
+
UNKNOWN_STATUS = "unknown".freeze
|
953
|
+
|
954
|
+
# @private
|
955
|
+
FAILED_STATUS = "failed".freeze
|
956
|
+
|
957
|
+
# @private
|
958
|
+
def spec_files_with_failures
|
959
|
+
@spec_files_with_failures ||= last_run_statuses.inject(Set.new) do |files, (id, status)|
|
960
|
+
files << Example.parse_id(id).first if status == FAILED_STATUS
|
961
|
+
files
|
962
|
+
end.to_a
|
963
|
+
end
|
964
|
+
|
965
|
+
# Creates a method that delegates to `example` including the submitted
|
966
|
+
# `args`. Used internally to add variants of `example` like `pending`:
|
967
|
+
# @param name [String] example name alias
|
968
|
+
# @param args [Array<Symbol>, Hash] metadata for the generated example
|
969
|
+
#
|
970
|
+
# @note The specific example alias below (`pending`) is already
|
971
|
+
# defined for you.
|
972
|
+
# @note Use with caution. This extends the language used in your
|
973
|
+
# specs, but does not add any additional documentation. We use this
|
974
|
+
# in RSpec to define methods like `focus` and `xit`, but we also add
|
975
|
+
# docs for those methods.
|
976
|
+
#
|
977
|
+
# @example
|
978
|
+
# RSpec.configure do |config|
|
979
|
+
# config.alias_example_to :pending, :pending => true
|
980
|
+
# end
|
981
|
+
#
|
982
|
+
# # This lets you do this:
|
983
|
+
#
|
984
|
+
# describe Thing do
|
985
|
+
# pending "does something" do
|
986
|
+
# thing = Thing.new
|
987
|
+
# end
|
988
|
+
# end
|
989
|
+
#
|
990
|
+
# # ... which is the equivalent of
|
991
|
+
#
|
992
|
+
# describe Thing do
|
993
|
+
# it "does something", :pending => true do
|
994
|
+
# thing = Thing.new
|
995
|
+
# end
|
996
|
+
# end
|
997
|
+
def alias_example_to(name, *args)
|
998
|
+
extra_options = Metadata.build_hash_from(args)
|
999
|
+
RSpec::Core::ExampleGroup.define_example_method(name, extra_options)
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Creates a method that defines an example group with the provided
|
1003
|
+
# metadata. Can be used to define example group/metadata shortcuts.
|
1004
|
+
#
|
1005
|
+
# @example
|
1006
|
+
# RSpec.configure do |config|
|
1007
|
+
# config.alias_example_group_to :describe_model, :type => :model
|
1008
|
+
# end
|
1009
|
+
#
|
1010
|
+
# shared_context_for "model tests", :type => :model do
|
1011
|
+
# # define common model test helper methods, `let` declarations, etc
|
1012
|
+
# end
|
1013
|
+
#
|
1014
|
+
# # This lets you do this:
|
1015
|
+
#
|
1016
|
+
# RSpec.describe_model User do
|
1017
|
+
# end
|
1018
|
+
#
|
1019
|
+
# # ... which is the equivalent of
|
1020
|
+
#
|
1021
|
+
# RSpec.describe User, :type => :model do
|
1022
|
+
# end
|
1023
|
+
#
|
1024
|
+
# @note The defined aliased will also be added to the top level
|
1025
|
+
# (e.g. `main` and from within modules) if
|
1026
|
+
# `expose_dsl_globally` is set to true.
|
1027
|
+
# @see #alias_example_to
|
1028
|
+
# @see #expose_dsl_globally=
|
1029
|
+
def alias_example_group_to(new_name, *args)
|
1030
|
+
extra_options = Metadata.build_hash_from(args)
|
1031
|
+
RSpec::Core::ExampleGroup.define_example_group_method(new_name, extra_options)
|
1032
|
+
end
|
1033
|
+
|
1034
|
+
# Define an alias for it_should_behave_like that allows different
|
1035
|
+
# language (like "it_has_behavior" or "it_behaves_like") to be
|
1036
|
+
# employed when including shared examples.
|
1037
|
+
#
|
1038
|
+
# @example
|
1039
|
+
# RSpec.configure do |config|
|
1040
|
+
# config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:')
|
1041
|
+
# end
|
1042
|
+
#
|
1043
|
+
# # allows the user to include a shared example group like:
|
1044
|
+
#
|
1045
|
+
# describe Entity do
|
1046
|
+
# it_has_behavior 'sortability' do
|
1047
|
+
# let(:sortable) { Entity.new }
|
1048
|
+
# end
|
1049
|
+
# end
|
1050
|
+
#
|
1051
|
+
# # which is reported in the output as:
|
1052
|
+
# # Entity
|
1053
|
+
# # has behavior: sortability
|
1054
|
+
# # ...sortability examples here
|
1055
|
+
#
|
1056
|
+
# @note Use with caution. This extends the language used in your
|
1057
|
+
# specs, but does not add any additional documentation. We use this
|
1058
|
+
# in RSpec to define `it_should_behave_like` (for backward
|
1059
|
+
# compatibility), but we also add docs for that method.
|
1060
|
+
def alias_it_behaves_like_to(new_name, report_label='')
|
1061
|
+
RSpec::Core::ExampleGroup.define_nested_shared_group_method(new_name, report_label)
|
1062
|
+
end
|
1063
|
+
alias_method :alias_it_should_behave_like_to, :alias_it_behaves_like_to
|
1064
|
+
|
1065
|
+
# Adds key/value pairs to the `inclusion_filter`. If `args`
|
1066
|
+
# includes any symbols that are not part of the hash, each symbol
|
1067
|
+
# is treated as a key in the hash with the value `true`.
|
1068
|
+
#
|
1069
|
+
# ### Note
|
1070
|
+
#
|
1071
|
+
# Filters set using this method can be overridden from the command line
|
1072
|
+
# or config files (e.g. `.rspec`).
|
1073
|
+
#
|
1074
|
+
# @example
|
1075
|
+
# # Given this declaration.
|
1076
|
+
# describe "something", :foo => 'bar' do
|
1077
|
+
# # ...
|
1078
|
+
# end
|
1079
|
+
#
|
1080
|
+
# # Any of the following will include that group.
|
1081
|
+
# config.filter_run_including :foo => 'bar'
|
1082
|
+
# config.filter_run_including :foo => /^ba/
|
1083
|
+
# config.filter_run_including :foo => lambda {|v| v == 'bar'}
|
1084
|
+
# config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
|
1085
|
+
#
|
1086
|
+
# # Given a proc with an arity of 1, the lambda is passed the value
|
1087
|
+
# # related to the key, e.g.
|
1088
|
+
# config.filter_run_including :foo => lambda {|v| v == 'bar'}
|
1089
|
+
#
|
1090
|
+
# # Given a proc with an arity of 2, the lambda is passed the value
|
1091
|
+
# # related to the key, and the metadata itself e.g.
|
1092
|
+
# config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
|
1093
|
+
#
|
1094
|
+
# filter_run_including :foo # same as filter_run_including :foo => true
|
1095
|
+
def filter_run_including(*args)
|
1096
|
+
meta = Metadata.build_hash_from(args, :warn_about_example_group_filtering)
|
1097
|
+
filter_manager.include_with_low_priority meta
|
1098
|
+
static_config_filter_manager.include_with_low_priority Metadata.deep_hash_dup(meta)
|
1099
|
+
end
|
1100
|
+
alias_method :filter_run, :filter_run_including
|
1101
|
+
|
1102
|
+
# Applies the provided filter only if any of examples match, in constrast
|
1103
|
+
# to {#filter_run}, which always applies even if no examples match, in
|
1104
|
+
# which case no examples will be run. This allows you to leave configured
|
1105
|
+
# filters in place that are intended only for temporary use. The most common
|
1106
|
+
# example is focus filtering: `config.filter_run_when_matching :focus`.
|
1107
|
+
# With that configured, you can temporarily focus an example or group
|
1108
|
+
# by tagging it with `:focus` metadata, or prefixing it with an `f`
|
1109
|
+
# (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for
|
1110
|
+
# `describe`/`context`/`it` with `:focus` metadata.
|
1111
|
+
def filter_run_when_matching(*args)
|
1112
|
+
when_first_matching_example_defined(*args) do
|
1113
|
+
filter_run(*args)
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
# Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
|
1118
|
+
# want any inclusion filter at all.
|
1119
|
+
#
|
1120
|
+
# ### Warning
|
1121
|
+
#
|
1122
|
+
# This overrides any inclusion filters/tags set on the command line or in
|
1123
|
+
# configuration files.
|
1124
|
+
def inclusion_filter=(filter)
|
1125
|
+
meta = Metadata.build_hash_from([filter], :warn_about_example_group_filtering)
|
1126
|
+
filter_manager.include_only meta
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
alias_method :filter=, :inclusion_filter=
|
1130
|
+
|
1131
|
+
# Returns the `inclusion_filter`. If none has been set, returns an empty
|
1132
|
+
# hash.
|
1133
|
+
def inclusion_filter
|
1134
|
+
filter_manager.inclusions
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
alias_method :filter, :inclusion_filter
|
1138
|
+
|
1139
|
+
# Adds key/value pairs to the `exclusion_filter`. If `args`
|
1140
|
+
# includes any symbols that are not part of the hash, each symbol
|
1141
|
+
# is treated as a key in the hash with the value `true`.
|
1142
|
+
#
|
1143
|
+
# ### Note
|
1144
|
+
#
|
1145
|
+
# Filters set using this method can be overridden from the command line
|
1146
|
+
# or config files (e.g. `.rspec`).
|
1147
|
+
#
|
1148
|
+
# @example
|
1149
|
+
# # Given this declaration.
|
1150
|
+
# describe "something", :foo => 'bar' do
|
1151
|
+
# # ...
|
1152
|
+
# end
|
1153
|
+
#
|
1154
|
+
# # Any of the following will exclude that group.
|
1155
|
+
# config.filter_run_excluding :foo => 'bar'
|
1156
|
+
# config.filter_run_excluding :foo => /^ba/
|
1157
|
+
# config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
|
1158
|
+
# config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
|
1159
|
+
#
|
1160
|
+
# # Given a proc with an arity of 1, the lambda is passed the value
|
1161
|
+
# # related to the key, e.g.
|
1162
|
+
# config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
|
1163
|
+
#
|
1164
|
+
# # Given a proc with an arity of 2, the lambda is passed the value
|
1165
|
+
# # related to the key, and the metadata itself e.g.
|
1166
|
+
# config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
|
1167
|
+
#
|
1168
|
+
# filter_run_excluding :foo # same as filter_run_excluding :foo => true
|
1169
|
+
def filter_run_excluding(*args)
|
1170
|
+
meta = Metadata.build_hash_from(args, :warn_about_example_group_filtering)
|
1171
|
+
filter_manager.exclude_with_low_priority meta
|
1172
|
+
static_config_filter_manager.exclude_with_low_priority Metadata.deep_hash_dup(meta)
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't
|
1176
|
+
# want any exclusion filter at all.
|
1177
|
+
#
|
1178
|
+
# ### Warning
|
1179
|
+
#
|
1180
|
+
# This overrides any exclusion filters/tags set on the command line or in
|
1181
|
+
# configuration files.
|
1182
|
+
def exclusion_filter=(filter)
|
1183
|
+
meta = Metadata.build_hash_from([filter], :warn_about_example_group_filtering)
|
1184
|
+
filter_manager.exclude_only meta
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
# Returns the `exclusion_filter`. If none has been set, returns an empty
|
1188
|
+
# hash.
|
1189
|
+
def exclusion_filter
|
1190
|
+
filter_manager.exclusions
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
# Tells RSpec to include `mod` in example groups. Methods defined in
|
1194
|
+
# `mod` are exposed to examples (not example groups). Use `filters` to
|
1195
|
+
# constrain the groups or examples in which to include the module.
|
1196
|
+
#
|
1197
|
+
# @example
|
1198
|
+
#
|
1199
|
+
# module AuthenticationHelpers
|
1200
|
+
# def login_as(user)
|
1201
|
+
# # ...
|
1202
|
+
# end
|
1203
|
+
# end
|
1204
|
+
#
|
1205
|
+
# module UserHelpers
|
1206
|
+
# def users(username)
|
1207
|
+
# # ...
|
1208
|
+
# end
|
1209
|
+
# end
|
1210
|
+
#
|
1211
|
+
# RSpec.configure do |config|
|
1212
|
+
# config.include(UserHelpers) # included in all groups
|
1213
|
+
# config.include(AuthenticationHelpers, :type => :request)
|
1214
|
+
# end
|
1215
|
+
#
|
1216
|
+
# describe "edit profile", :type => :request do
|
1217
|
+
# it "can be viewed by owning user" do
|
1218
|
+
# login_as users(:jdoe)
|
1219
|
+
# get "/profiles/jdoe"
|
1220
|
+
# assert_select ".username", :text => 'jdoe'
|
1221
|
+
# end
|
1222
|
+
# end
|
1223
|
+
#
|
1224
|
+
# @note Filtered module inclusions can also be applied to
|
1225
|
+
# individual examples that have matching metadata. Just like
|
1226
|
+
# Ruby's object model is that every object has a singleton class
|
1227
|
+
# which has only a single instance, RSpec's model is that every
|
1228
|
+
# example has a singleton example group containing just the one
|
1229
|
+
# example.
|
1230
|
+
#
|
1231
|
+
# @see #include_context
|
1232
|
+
# @see #extend
|
1233
|
+
# @see #prepend
|
1234
|
+
def include(mod, *filters)
|
1235
|
+
define_mixed_in_module(mod, filters, @include_modules, :include) do |group|
|
1236
|
+
safe_include(mod, group)
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# Tells RSpec to include the named shared example group in example groups.
|
1241
|
+
# Use `filters` to constrain the groups or examples in which to include
|
1242
|
+
# the example group.
|
1243
|
+
#
|
1244
|
+
# @example
|
1245
|
+
#
|
1246
|
+
# RSpec.shared_context "example users" do
|
1247
|
+
# let(:admin_user) { create_user(:admin) }
|
1248
|
+
# let(:guest_user) { create_user(:guest) }
|
1249
|
+
# end
|
1250
|
+
#
|
1251
|
+
# RSpec.configure do |config|
|
1252
|
+
# config.include_context "example users", :type => :request
|
1253
|
+
# end
|
1254
|
+
#
|
1255
|
+
# RSpec.describe "The admin page", :type => :request do
|
1256
|
+
# it "can be viewed by admins" do
|
1257
|
+
# login_with admin_user
|
1258
|
+
# get "/admin"
|
1259
|
+
# expect(response).to be_ok
|
1260
|
+
# end
|
1261
|
+
#
|
1262
|
+
# it "cannot be viewed by guests" do
|
1263
|
+
# login_with guest_user
|
1264
|
+
# get "/admin"
|
1265
|
+
# expect(response).to be_forbidden
|
1266
|
+
# end
|
1267
|
+
# end
|
1268
|
+
#
|
1269
|
+
# @note Filtered context inclusions can also be applied to
|
1270
|
+
# individual examples that have matching metadata. Just like
|
1271
|
+
# Ruby's object model is that every object has a singleton class
|
1272
|
+
# which has only a single instance, RSpec's model is that every
|
1273
|
+
# example has a singleton example group containing just the one
|
1274
|
+
# example.
|
1275
|
+
#
|
1276
|
+
# @see #include
|
1277
|
+
def include_context(shared_group_name, *filters)
|
1278
|
+
shared_module = world.shared_example_group_registry.find([:main], shared_group_name)
|
1279
|
+
include shared_module, *filters
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
# Tells RSpec to extend example groups with `mod`. Methods defined in
|
1283
|
+
# `mod` are exposed to example groups (not examples). Use `filters` to
|
1284
|
+
# constrain the groups to extend.
|
1285
|
+
#
|
1286
|
+
# Similar to `include`, but behavior is added to example groups, which
|
1287
|
+
# are classes, rather than the examples, which are instances of those
|
1288
|
+
# classes.
|
1289
|
+
#
|
1290
|
+
# @example
|
1291
|
+
#
|
1292
|
+
# module UiHelpers
|
1293
|
+
# def run_in_browser
|
1294
|
+
# # ...
|
1295
|
+
# end
|
1296
|
+
# end
|
1297
|
+
#
|
1298
|
+
# RSpec.configure do |config|
|
1299
|
+
# config.extend(UiHelpers, :type => :request)
|
1300
|
+
# end
|
1301
|
+
#
|
1302
|
+
# describe "edit profile", :type => :request do
|
1303
|
+
# run_in_browser
|
1304
|
+
#
|
1305
|
+
# it "does stuff in the client" do
|
1306
|
+
# # ...
|
1307
|
+
# end
|
1308
|
+
# end
|
1309
|
+
#
|
1310
|
+
# @see #include
|
1311
|
+
# @see #prepend
|
1312
|
+
def extend(mod, *filters)
|
1313
|
+
define_mixed_in_module(mod, filters, @extend_modules, :extend) do |group|
|
1314
|
+
safe_extend(mod, group)
|
1315
|
+
end
|
1316
|
+
end
|
1317
|
+
|
1318
|
+
if RSpec::Support::RubyFeatures.module_prepends_supported?
|
1319
|
+
# Tells RSpec to prepend example groups with `mod`. Methods defined in
|
1320
|
+
# `mod` are exposed to examples (not example groups). Use `filters` to
|
1321
|
+
# constrain the groups in which to prepend the module.
|
1322
|
+
#
|
1323
|
+
# Similar to `include`, but module is included before the example group's class
|
1324
|
+
# in the ancestor chain.
|
1325
|
+
#
|
1326
|
+
# @example
|
1327
|
+
#
|
1328
|
+
# module OverrideMod
|
1329
|
+
# def override_me
|
1330
|
+
# "overridden"
|
1331
|
+
# end
|
1332
|
+
# end
|
1333
|
+
#
|
1334
|
+
# RSpec.configure do |config|
|
1335
|
+
# config.prepend(OverrideMod, :method => :prepend)
|
1336
|
+
# end
|
1337
|
+
#
|
1338
|
+
# describe "overriding example's class", :method => :prepend do
|
1339
|
+
# it "finds the user" do
|
1340
|
+
# self.class.class_eval do
|
1341
|
+
# def override_me
|
1342
|
+
# end
|
1343
|
+
# end
|
1344
|
+
# override_me # => "overridden"
|
1345
|
+
# # ...
|
1346
|
+
# end
|
1347
|
+
# end
|
1348
|
+
#
|
1349
|
+
# @see #include
|
1350
|
+
# @see #extend
|
1351
|
+
def prepend(mod, *filters)
|
1352
|
+
define_mixed_in_module(mod, filters, @prepend_modules, :prepend) do |group|
|
1353
|
+
safe_prepend(mod, group)
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
# @private
|
1359
|
+
#
|
1360
|
+
# Used internally to extend a group with modules using `include`, `prepend` and/or
|
1361
|
+
# `extend`.
|
1362
|
+
def configure_group(group)
|
1363
|
+
group.hooks.register_globals(group, hooks)
|
1364
|
+
|
1365
|
+
configure_group_with group, @include_modules, :safe_include
|
1366
|
+
configure_group_with group, @extend_modules, :safe_extend
|
1367
|
+
configure_group_with group, @prepend_modules, :safe_prepend
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
# @private
|
1371
|
+
#
|
1372
|
+
# Used internally to extend the singleton class of a single example's
|
1373
|
+
# example group instance with modules using `include` and/or `extend`.
|
1374
|
+
def configure_example(example, example_hooks)
|
1375
|
+
example_hooks.register_global_singleton_context_hooks(example, hooks)
|
1376
|
+
singleton_group = example.example_group_instance.singleton_class
|
1377
|
+
|
1378
|
+
# We replace the metadata so that SharedExampleGroupModule#included
|
1379
|
+
# has access to the example's metadata[:location].
|
1380
|
+
singleton_group.with_replaced_metadata(example.metadata) do
|
1381
|
+
modules = @include_modules.items_for(example.metadata)
|
1382
|
+
modules.each do |mod|
|
1383
|
+
safe_include(mod, example.example_group_instance.singleton_class)
|
1384
|
+
end
|
1385
|
+
|
1386
|
+
MemoizedHelpers.define_helpers_on(singleton_group) unless modules.empty?
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
# @private
|
1391
|
+
def requires=(paths)
|
1392
|
+
directories = ['lib', default_path].select { |p| File.directory? p }
|
1393
|
+
RSpec::Core::RubyProject.add_to_load_path(*directories)
|
1394
|
+
paths.each { |path| require path }
|
1395
|
+
@requires += paths
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
# @private
|
1399
|
+
def in_project_source_dir_regex
|
1400
|
+
regexes = project_source_dirs.map do |dir|
|
1401
|
+
/\A#{Regexp.escape(File.expand_path(dir))}\//
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
Regexp.union(regexes)
|
1405
|
+
end
|
1406
|
+
|
1407
|
+
# @private
|
1408
|
+
def configure_mock_framework
|
1409
|
+
RSpec::Core::ExampleGroup.__send__(:include, mock_framework)
|
1410
|
+
conditionally_disable_mocks_monkey_patching
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# @private
|
1414
|
+
def configure_expectation_framework
|
1415
|
+
expectation_frameworks.each do |framework|
|
1416
|
+
RSpec::Core::ExampleGroup.__send__(:include, framework)
|
1417
|
+
end
|
1418
|
+
conditionally_disable_expectations_monkey_patching
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
# @private
|
1422
|
+
def load_spec_files
|
1423
|
+
# Note which spec files world is already aware of.
|
1424
|
+
# This is generally only needed for when the user runs
|
1425
|
+
# `ruby path/to/spec.rb` (and loads `rspec/autorun`) --
|
1426
|
+
# in that case, the spec file was loaded by `ruby` and
|
1427
|
+
# isn't loaded by us here so we only know about it because
|
1428
|
+
# of an example group being registered in it.
|
1429
|
+
world.registered_example_group_files.each do |f|
|
1430
|
+
loaded_spec_files << f # the registered files are already expended absolute paths
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
files_to_run.uniq.each do |f|
|
1434
|
+
file = File.expand_path(f)
|
1435
|
+
load file
|
1436
|
+
loaded_spec_files << file
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
@spec_files_loaded = true
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
# @private
|
1443
|
+
DEFAULT_FORMATTER = lambda { |string| string }
|
1444
|
+
|
1445
|
+
# Formats the docstring output using the block provided.
|
1446
|
+
#
|
1447
|
+
# @example
|
1448
|
+
# # This will strip the descriptions of both examples and example
|
1449
|
+
# # groups.
|
1450
|
+
# RSpec.configure do |config|
|
1451
|
+
# config.format_docstrings { |s| s.strip }
|
1452
|
+
# end
|
1453
|
+
def format_docstrings(&block)
|
1454
|
+
@format_docstrings_block = block_given? ? block : DEFAULT_FORMATTER
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
# @private
|
1458
|
+
def format_docstrings_block
|
1459
|
+
@format_docstrings_block ||= DEFAULT_FORMATTER
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
# @private
|
1463
|
+
# @macro [attach] delegate_to_ordering_manager
|
1464
|
+
# @!method $1
|
1465
|
+
def self.delegate_to_ordering_manager(*methods)
|
1466
|
+
methods.each do |method|
|
1467
|
+
define_method method do |*args, &block|
|
1468
|
+
ordering_manager.__send__(method, *args, &block)
|
1469
|
+
end
|
1470
|
+
end
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
# @macro delegate_to_ordering_manager
|
1474
|
+
#
|
1475
|
+
# Sets the seed value and sets the default global ordering to random.
|
1476
|
+
delegate_to_ordering_manager :seed=
|
1477
|
+
|
1478
|
+
# @macro delegate_to_ordering_manager
|
1479
|
+
# Seed for random ordering (default: generated randomly each run).
|
1480
|
+
#
|
1481
|
+
# When you run specs with `--order random`, RSpec generates a random seed
|
1482
|
+
# for the randomization and prints it to the `output_stream` (assuming
|
1483
|
+
# you're using RSpec's built-in formatters). If you discover an ordering
|
1484
|
+
# dependency (i.e. examples fail intermittently depending on order), set
|
1485
|
+
# this (on Configuration or on the command line with `--seed`) to run
|
1486
|
+
# using the same seed while you debug the issue.
|
1487
|
+
#
|
1488
|
+
# We recommend, actually, that you use the command line approach so you
|
1489
|
+
# don't accidentally leave the seed encoded.
|
1490
|
+
delegate_to_ordering_manager :seed
|
1491
|
+
|
1492
|
+
# @macro delegate_to_ordering_manager
|
1493
|
+
#
|
1494
|
+
# Sets the default global ordering strategy. By default this can be one
|
1495
|
+
# of `:defined`, `:random`, but is customizable through the
|
1496
|
+
# `register_ordering` API. If order is set to `'rand:<seed>'`,
|
1497
|
+
# the seed will also be set.
|
1498
|
+
#
|
1499
|
+
# @see #register_ordering
|
1500
|
+
delegate_to_ordering_manager :order=
|
1501
|
+
|
1502
|
+
# @macro delegate_to_ordering_manager
|
1503
|
+
# Registers a named ordering strategy that can later be
|
1504
|
+
# used to order an example group's subgroups by adding
|
1505
|
+
# `:order => <name>` metadata to the example group.
|
1506
|
+
#
|
1507
|
+
# @param name [Symbol] The name of the ordering.
|
1508
|
+
# @yield Block that will order the given examples or example groups
|
1509
|
+
# @yieldparam list [Array<RSpec::Core::Example>,
|
1510
|
+
# Array<RSpec::Core::ExampleGroup>] The examples or groups to order
|
1511
|
+
# @yieldreturn [Array<RSpec::Core::Example>,
|
1512
|
+
# Array<RSpec::Core::ExampleGroup>] The re-ordered examples or groups
|
1513
|
+
#
|
1514
|
+
# @example
|
1515
|
+
# RSpec.configure do |rspec|
|
1516
|
+
# rspec.register_ordering :reverse do |list|
|
1517
|
+
# list.reverse
|
1518
|
+
# end
|
1519
|
+
# end
|
1520
|
+
#
|
1521
|
+
# RSpec.describe 'MyClass', :order => :reverse do
|
1522
|
+
# # ...
|
1523
|
+
# end
|
1524
|
+
#
|
1525
|
+
# @note Pass the symbol `:global` to set the ordering strategy that
|
1526
|
+
# will be used to order the top-level example groups and any example
|
1527
|
+
# groups that do not have declared `:order` metadata.
|
1528
|
+
#
|
1529
|
+
# @example
|
1530
|
+
# RSpec.configure do |rspec|
|
1531
|
+
# rspec.register_ordering :global do |examples|
|
1532
|
+
# acceptance, other = examples.partition do |example|
|
1533
|
+
# example.metadata[:type] == :acceptance
|
1534
|
+
# end
|
1535
|
+
# other + acceptance
|
1536
|
+
# end
|
1537
|
+
# end
|
1538
|
+
#
|
1539
|
+
# RSpec.describe 'MyClass', :type => :acceptance do
|
1540
|
+
# # will run last
|
1541
|
+
# end
|
1542
|
+
#
|
1543
|
+
# RSpec.describe 'MyClass' do
|
1544
|
+
# # will run first
|
1545
|
+
# end
|
1546
|
+
#
|
1547
|
+
delegate_to_ordering_manager :register_ordering
|
1548
|
+
|
1549
|
+
# @private
|
1550
|
+
delegate_to_ordering_manager :seed_used?, :ordering_registry
|
1551
|
+
|
1552
|
+
# Set Ruby warnings on or off.
|
1553
|
+
def warnings=(value)
|
1554
|
+
$VERBOSE = !!value
|
1555
|
+
end
|
1556
|
+
|
1557
|
+
# @return [Boolean] Whether or not ruby warnings are enabled.
|
1558
|
+
def warnings?
|
1559
|
+
$VERBOSE
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
# @private
|
1563
|
+
RAISE_ERROR_WARNING_NOTIFIER = lambda { |message| raise message }
|
1564
|
+
|
1565
|
+
# Turns warnings into errors. This can be useful when
|
1566
|
+
# you want RSpec to run in a 'strict' no warning situation.
|
1567
|
+
#
|
1568
|
+
# @example
|
1569
|
+
#
|
1570
|
+
# RSpec.configure do |rspec|
|
1571
|
+
# rspec.raise_on_warning = true
|
1572
|
+
# end
|
1573
|
+
def raise_on_warning=(value)
|
1574
|
+
if value
|
1575
|
+
RSpec::Support.warning_notifier = RAISE_ERROR_WARNING_NOTIFIER
|
1576
|
+
else
|
1577
|
+
RSpec::Support.warning_notifier = RSpec::Support::DEFAULT_WARNING_NOTIFIER
|
1578
|
+
end
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
# Exposes the current running example via the named
|
1582
|
+
# helper method. RSpec 2.x exposed this via `example`,
|
1583
|
+
# but in RSpec 3.0, the example is instead exposed via
|
1584
|
+
# an arg yielded to `it`, `before`, `let`, etc. However,
|
1585
|
+
# some extension gems (such as Capybara) depend on the
|
1586
|
+
# RSpec 2.x's `example` method, so this config option
|
1587
|
+
# can be used to maintain compatibility.
|
1588
|
+
#
|
1589
|
+
# @param method_name [Symbol] the name of the helper method
|
1590
|
+
#
|
1591
|
+
# @example
|
1592
|
+
#
|
1593
|
+
# RSpec.configure do |rspec|
|
1594
|
+
# rspec.expose_current_running_example_as :example
|
1595
|
+
# end
|
1596
|
+
#
|
1597
|
+
# describe MyClass do
|
1598
|
+
# before do
|
1599
|
+
# # `example` can be used here because of the above config.
|
1600
|
+
# do_something if example.metadata[:type] == "foo"
|
1601
|
+
# end
|
1602
|
+
# end
|
1603
|
+
def expose_current_running_example_as(method_name)
|
1604
|
+
ExposeCurrentExample.module_exec do
|
1605
|
+
extend RSpec::SharedContext
|
1606
|
+
let(method_name) { |ex| ex }
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
include ExposeCurrentExample
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
# @private
|
1613
|
+
module ExposeCurrentExample; end
|
1614
|
+
|
1615
|
+
# Turns deprecation warnings into errors, in order to surface
|
1616
|
+
# the full backtrace of the call site. This can be useful when
|
1617
|
+
# you need more context to address a deprecation than the
|
1618
|
+
# single-line call site normally provided.
|
1619
|
+
#
|
1620
|
+
# @example
|
1621
|
+
#
|
1622
|
+
# RSpec.configure do |rspec|
|
1623
|
+
# rspec.raise_errors_for_deprecations!
|
1624
|
+
# end
|
1625
|
+
def raise_errors_for_deprecations!
|
1626
|
+
self.deprecation_stream = Formatters::DeprecationFormatter::RaiseErrorStream.new
|
1627
|
+
end
|
1628
|
+
|
1629
|
+
# Enables zero monkey patching mode for RSpec. It removes monkey
|
1630
|
+
# patching of the top-level DSL methods (`describe`,
|
1631
|
+
# `shared_examples_for`, etc) onto `main` and `Module`, instead
|
1632
|
+
# requiring you to prefix these methods with `RSpec.`. It enables
|
1633
|
+
# expect-only syntax for rspec-mocks and rspec-expectations. It
|
1634
|
+
# simply disables monkey patching on whatever pieces of RSpec
|
1635
|
+
# the user is using.
|
1636
|
+
#
|
1637
|
+
# @note It configures rspec-mocks and rspec-expectations only
|
1638
|
+
# if the user is using those (either explicitly or implicitly
|
1639
|
+
# by not setting `mock_with` or `expect_with` to anything else).
|
1640
|
+
#
|
1641
|
+
# @note If the user uses this options with `mock_with :mocha`
|
1642
|
+
# (or similiar) they will still have monkey patching active
|
1643
|
+
# in their test environment from mocha.
|
1644
|
+
#
|
1645
|
+
# @example
|
1646
|
+
#
|
1647
|
+
# # It disables all monkey patching.
|
1648
|
+
# RSpec.configure do |config|
|
1649
|
+
# config.disable_monkey_patching!
|
1650
|
+
# end
|
1651
|
+
#
|
1652
|
+
# # Is an equivalent to
|
1653
|
+
# RSpec.configure do |config|
|
1654
|
+
# config.expose_dsl_globally = false
|
1655
|
+
#
|
1656
|
+
# config.mock_with :rspec do |mocks|
|
1657
|
+
# mocks.syntax = :expect
|
1658
|
+
# mocks.patch_marshal_to_support_partial_doubles = false
|
1659
|
+
# end
|
1660
|
+
#
|
1661
|
+
# config.mock_with :rspec do |expectations|
|
1662
|
+
# expectations.syntax = :expect
|
1663
|
+
# end
|
1664
|
+
# end
|
1665
|
+
def disable_monkey_patching!
|
1666
|
+
self.expose_dsl_globally = false
|
1667
|
+
self.disable_monkey_patching = true
|
1668
|
+
conditionally_disable_mocks_monkey_patching
|
1669
|
+
conditionally_disable_expectations_monkey_patching
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
# @private
|
1673
|
+
attr_accessor :disable_monkey_patching
|
1674
|
+
|
1675
|
+
# Defines a callback that can assign derived metadata values.
|
1676
|
+
#
|
1677
|
+
# @param filters [Array<Symbol>, Hash] metadata filters that determine
|
1678
|
+
# which example or group metadata hashes the callback will be triggered
|
1679
|
+
# for. If none are given, the callback will be run against the metadata
|
1680
|
+
# hashes of all groups and examples.
|
1681
|
+
# @yieldparam metadata [Hash] original metadata hash from an example or
|
1682
|
+
# group. Mutate this in your block as needed.
|
1683
|
+
#
|
1684
|
+
# @example
|
1685
|
+
# RSpec.configure do |config|
|
1686
|
+
# # Tag all groups and examples in the spec/unit directory with
|
1687
|
+
# # :type => :unit
|
1688
|
+
# config.define_derived_metadata(:file_path => %r{/spec/unit/}) do |metadata|
|
1689
|
+
# metadata[:type] = :unit
|
1690
|
+
# end
|
1691
|
+
# end
|
1692
|
+
def define_derived_metadata(*filters, &block)
|
1693
|
+
meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
|
1694
|
+
@derived_metadata_blocks.append(block, meta)
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
# Defines a callback that runs after the first example with matching
|
1698
|
+
# metadata is defined. If no examples are defined with matching metadata,
|
1699
|
+
# it will not get called at all.
|
1700
|
+
#
|
1701
|
+
# This can be used to ensure some setup is performed (such as bootstrapping
|
1702
|
+
# a DB or loading a specific file that adds significantly to the boot time)
|
1703
|
+
# if needed (as indicated by the presence of an example with matching metadata)
|
1704
|
+
# but avoided otherwise.
|
1705
|
+
#
|
1706
|
+
# @example
|
1707
|
+
# RSpec.configure do |config|
|
1708
|
+
# config.when_first_matching_example_defined(:db) do
|
1709
|
+
# # Load a support file that does some heavyweight setup,
|
1710
|
+
# # including bootstrapping the DB, but only if we have loaded
|
1711
|
+
# # any examples tagged with `:db`.
|
1712
|
+
# require 'support/db'
|
1713
|
+
# end
|
1714
|
+
# end
|
1715
|
+
def when_first_matching_example_defined(*filters, &block)
|
1716
|
+
specified_meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
|
1717
|
+
|
1718
|
+
callback = lambda do |example_or_group_meta|
|
1719
|
+
# Example groups do not have `:example_group` metadata
|
1720
|
+
# (instead they have `:parent_example_group` metadata).
|
1721
|
+
return unless example_or_group_meta.key?(:example_group)
|
1722
|
+
|
1723
|
+
# Ensure the callback only fires once.
|
1724
|
+
@derived_metadata_blocks.items_for(specified_meta).delete(callback)
|
1725
|
+
|
1726
|
+
block.call
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
@derived_metadata_blocks.append(callback, specified_meta)
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
# @private
|
1733
|
+
def apply_derived_metadata_to(metadata)
|
1734
|
+
@derived_metadata_blocks.items_for(metadata).each do |block|
|
1735
|
+
block.call(metadata)
|
1736
|
+
end
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
# Defines a `before` hook. See {Hooks#before} for full docs.
|
1740
|
+
#
|
1741
|
+
# This method differs from {Hooks#before} in only one way: it supports
|
1742
|
+
# the `:suite` scope. Hooks with the `:suite` scope will be run once before
|
1743
|
+
# the first example of the entire suite is executed.
|
1744
|
+
#
|
1745
|
+
# @see #prepend_before
|
1746
|
+
# @see #after
|
1747
|
+
# @see #append_after
|
1748
|
+
def before(scope=nil, *meta, &block)
|
1749
|
+
handle_suite_hook(scope, meta) do
|
1750
|
+
@before_suite_hooks << Hooks::BeforeHook.new(block, {})
|
1751
|
+
end || begin
|
1752
|
+
add_hook_to_existing_matching_groups(meta, scope) { |g| g.before(scope, *meta, &block) }
|
1753
|
+
super(scope, *meta, &block)
|
1754
|
+
end
|
1755
|
+
end
|
1756
|
+
alias_method :append_before, :before
|
1757
|
+
|
1758
|
+
# Adds `block` to the start of the list of `before` blocks in the same
|
1759
|
+
# scope (`:example`, `:context`, or `:suite`), in contrast to {#before},
|
1760
|
+
# which adds the hook to the end of the list.
|
1761
|
+
#
|
1762
|
+
# See {Hooks#before} for full `before` hook docs.
|
1763
|
+
#
|
1764
|
+
# This method differs from {Hooks#prepend_before} in only one way: it supports
|
1765
|
+
# the `:suite` scope. Hooks with the `:suite` scope will be run once before
|
1766
|
+
# the first example of the entire suite is executed.
|
1767
|
+
#
|
1768
|
+
# @see #before
|
1769
|
+
# @see #after
|
1770
|
+
# @see #append_after
|
1771
|
+
def prepend_before(scope=nil, *meta, &block)
|
1772
|
+
handle_suite_hook(scope, meta) do
|
1773
|
+
@before_suite_hooks.unshift Hooks::BeforeHook.new(block, {})
|
1774
|
+
end || begin
|
1775
|
+
add_hook_to_existing_matching_groups(meta, scope) { |g| g.prepend_before(scope, *meta, &block) }
|
1776
|
+
super(scope, *meta, &block)
|
1777
|
+
end
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
# Defines a `after` hook. See {Hooks#after} for full docs.
|
1781
|
+
#
|
1782
|
+
# This method differs from {Hooks#after} in only one way: it supports
|
1783
|
+
# the `:suite` scope. Hooks with the `:suite` scope will be run once after
|
1784
|
+
# the last example of the entire suite is executed.
|
1785
|
+
#
|
1786
|
+
# @see #append_after
|
1787
|
+
# @see #before
|
1788
|
+
# @see #prepend_before
|
1789
|
+
def after(scope=nil, *meta, &block)
|
1790
|
+
handle_suite_hook(scope, meta) do
|
1791
|
+
@after_suite_hooks.unshift Hooks::AfterHook.new(block, {})
|
1792
|
+
end || begin
|
1793
|
+
add_hook_to_existing_matching_groups(meta, scope) { |g| g.after(scope, *meta, &block) }
|
1794
|
+
super(scope, *meta, &block)
|
1795
|
+
end
|
1796
|
+
end
|
1797
|
+
alias_method :prepend_after, :after
|
1798
|
+
|
1799
|
+
# Adds `block` to the end of the list of `after` blocks in the same
|
1800
|
+
# scope (`:example`, `:context`, or `:suite`), in contrast to {#after},
|
1801
|
+
# which adds the hook to the start of the list.
|
1802
|
+
#
|
1803
|
+
# See {Hooks#after} for full `after` hook docs.
|
1804
|
+
#
|
1805
|
+
# This method differs from {Hooks#append_after} in only one way: it supports
|
1806
|
+
# the `:suite` scope. Hooks with the `:suite` scope will be run once after
|
1807
|
+
# the last example of the entire suite is executed.
|
1808
|
+
#
|
1809
|
+
# @see #append_after
|
1810
|
+
# @see #before
|
1811
|
+
# @see #prepend_before
|
1812
|
+
def append_after(scope=nil, *meta, &block)
|
1813
|
+
handle_suite_hook(scope, meta) do
|
1814
|
+
@after_suite_hooks << Hooks::AfterHook.new(block, {})
|
1815
|
+
end || begin
|
1816
|
+
add_hook_to_existing_matching_groups(meta, scope) { |g| g.append_after(scope, *meta, &block) }
|
1817
|
+
super(scope, *meta, &block)
|
1818
|
+
end
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Registers `block` as an `around` hook.
|
1822
|
+
#
|
1823
|
+
# See {Hooks#around} for full `around` hook docs.
|
1824
|
+
def around(scope=nil, *meta, &block)
|
1825
|
+
add_hook_to_existing_matching_groups(meta, scope) { |g| g.around(scope, *meta, &block) }
|
1826
|
+
super(scope, *meta, &block)
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
# @private
|
1830
|
+
def with_suite_hooks
|
1831
|
+
return yield if dry_run?
|
1832
|
+
|
1833
|
+
begin
|
1834
|
+
run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks)
|
1835
|
+
yield
|
1836
|
+
ensure
|
1837
|
+
run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks)
|
1838
|
+
end
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
# @private
|
1842
|
+
# Holds the various registered hooks. Here we use a FilterableItemRepository
|
1843
|
+
# implementation that is specifically optimized for the read/write patterns
|
1844
|
+
# of the config object.
|
1845
|
+
def hooks
|
1846
|
+
@hooks ||= HookCollections.new(self, FilterableItemRepository::QueryOptimized)
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
# Invokes block before defining an example group
|
1850
|
+
def on_example_group_definition(&block)
|
1851
|
+
on_example_group_definition_callbacks << block
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
# @api private
|
1855
|
+
# Returns an array of blocks to call before defining an example group
|
1856
|
+
def on_example_group_definition_callbacks
|
1857
|
+
@on_example_group_definition_callbacks ||= []
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
private
|
1861
|
+
|
1862
|
+
def handle_suite_hook(scope, meta)
|
1863
|
+
return nil unless scope == :suite
|
1864
|
+
|
1865
|
+
unless meta.empty?
|
1866
|
+
# TODO: in RSpec 4, consider raising an error here.
|
1867
|
+
# We warn only for backwards compatibility.
|
1868
|
+
RSpec.warn_with "WARNING: `:suite` hooks do not support metadata since " \
|
1869
|
+
"they apply to the suite as a whole rather than " \
|
1870
|
+
"any individual example or example group that has metadata. " \
|
1871
|
+
"The metadata you have provided (#{meta.inspect}) will be ignored."
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
yield
|
1875
|
+
end
|
1876
|
+
|
1877
|
+
def run_suite_hooks(hook_description, hooks)
|
1878
|
+
context = SuiteHookContext.new(hook_description, reporter)
|
1879
|
+
|
1880
|
+
hooks.each do |hook|
|
1881
|
+
begin
|
1882
|
+
hook.run(context)
|
1883
|
+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => ex
|
1884
|
+
context.set_exception(ex)
|
1885
|
+
end
|
1886
|
+
end
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
def get_files_to_run(paths)
|
1890
|
+
files = FlatMap.flat_map(paths_to_check(paths)) do |path|
|
1891
|
+
path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
|
1892
|
+
File.directory?(path) ? gather_directories(path) : extract_location(path)
|
1893
|
+
end.uniq
|
1894
|
+
|
1895
|
+
return files unless only_failures?
|
1896
|
+
relative_files = files.map { |f| Metadata.relative_path(File.expand_path f) }
|
1897
|
+
intersection = (relative_files & spec_files_with_failures.to_a)
|
1898
|
+
intersection.empty? ? files : intersection
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
def paths_to_check(paths)
|
1902
|
+
return paths if pattern_might_load_specs_from_vendored_dirs?
|
1903
|
+
paths + [Dir.getwd]
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
def pattern_might_load_specs_from_vendored_dirs?
|
1907
|
+
pattern.split(File::SEPARATOR).first.include?('**')
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
def gather_directories(path)
|
1911
|
+
include_files = get_matching_files(path, pattern)
|
1912
|
+
exclude_files = get_matching_files(path, exclude_pattern)
|
1913
|
+
(include_files - exclude_files).uniq
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
def get_matching_files(path, pattern)
|
1917
|
+
raw_files = Dir[file_glob_from(path, pattern)]
|
1918
|
+
raw_files.map { |file| File.expand_path(file) }.sort
|
1919
|
+
end
|
1920
|
+
|
1921
|
+
def file_glob_from(path, pattern)
|
1922
|
+
stripped = "{#{pattern.gsub(/\s*,\s*/, ',')}}"
|
1923
|
+
return stripped if pattern =~ /^(\.\/)?#{Regexp.escape path}/ || absolute_pattern?(pattern)
|
1924
|
+
File.join(path, stripped)
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
if RSpec::Support::OS.windows?
|
1928
|
+
# :nocov:
|
1929
|
+
def absolute_pattern?(pattern)
|
1930
|
+
pattern =~ /\A[A-Z]:\\/ || windows_absolute_network_path?(pattern)
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
def windows_absolute_network_path?(pattern)
|
1934
|
+
return false unless ::File::ALT_SEPARATOR
|
1935
|
+
pattern.start_with?(::File::ALT_SEPARATOR + ::File::ALT_SEPARATOR)
|
1936
|
+
end
|
1937
|
+
# :nocov:
|
1938
|
+
else
|
1939
|
+
def absolute_pattern?(pattern)
|
1940
|
+
pattern.start_with?(File::Separator)
|
1941
|
+
end
|
1942
|
+
end
|
1943
|
+
|
1944
|
+
def extract_location(path)
|
1945
|
+
match = /^(.*?)((?:\:\d+)+)$/.match(path)
|
1946
|
+
|
1947
|
+
if match
|
1948
|
+
captures = match.captures
|
1949
|
+
path = captures[0]
|
1950
|
+
lines = captures[1][1..-1].split(":").map(&:to_i)
|
1951
|
+
filter_manager.add_location path, lines
|
1952
|
+
else
|
1953
|
+
path, scoped_ids = Example.parse_id(path)
|
1954
|
+
filter_manager.add_ids(path, scoped_ids.split(/\s*,\s*/)) if scoped_ids
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
return [] if path == default_path
|
1958
|
+
File.expand_path(path)
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
def command
|
1962
|
+
$0.split(File::SEPARATOR).last
|
1963
|
+
end
|
1964
|
+
|
1965
|
+
def value_for(key)
|
1966
|
+
@preferred_options.fetch(key) { yield }
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
def define_built_in_hooks
|
1970
|
+
around(:example, :aggregate_failures => true) do |procsy|
|
1971
|
+
begin
|
1972
|
+
aggregate_failures(nil, :hide_backtrace => true, &procsy)
|
1973
|
+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => exception
|
1974
|
+
procsy.example.set_aggregate_failures_exception(exception)
|
1975
|
+
end
|
1976
|
+
end
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
def assert_no_example_groups_defined(config_option)
|
1980
|
+
return unless world.example_groups.any?
|
1981
|
+
|
1982
|
+
raise MustBeConfiguredBeforeExampleGroupsError.new(
|
1983
|
+
"RSpec's #{config_option} configuration option must be configured before " \
|
1984
|
+
"any example groups are defined, but you have already defined a group."
|
1985
|
+
)
|
1986
|
+
end
|
1987
|
+
|
1988
|
+
def output_to_tty?(output=output_stream)
|
1989
|
+
tty? || (output.respond_to?(:tty?) && output.tty?)
|
1990
|
+
end
|
1991
|
+
|
1992
|
+
def conditionally_disable_mocks_monkey_patching
|
1993
|
+
return unless disable_monkey_patching && rspec_mocks_loaded?
|
1994
|
+
|
1995
|
+
RSpec::Mocks.configuration.tap do |config|
|
1996
|
+
config.syntax = :expect
|
1997
|
+
config.patch_marshal_to_support_partial_doubles = false
|
1998
|
+
end
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
def conditionally_disable_expectations_monkey_patching
|
2002
|
+
return unless disable_monkey_patching && rspec_expectations_loaded?
|
2003
|
+
|
2004
|
+
RSpec::Expectations.configuration.syntax = :expect
|
2005
|
+
end
|
2006
|
+
|
2007
|
+
def rspec_mocks_loaded?
|
2008
|
+
defined?(RSpec::Mocks.configuration)
|
2009
|
+
end
|
2010
|
+
|
2011
|
+
def rspec_expectations_loaded?
|
2012
|
+
defined?(RSpec::Expectations.configuration)
|
2013
|
+
end
|
2014
|
+
|
2015
|
+
def update_pattern_attr(name, value)
|
2016
|
+
if @spec_files_loaded
|
2017
|
+
RSpec.warning "Configuring `#{name}` to #{value} has no effect since " \
|
2018
|
+
"RSpec has already loaded the spec files."
|
2019
|
+
end
|
2020
|
+
|
2021
|
+
instance_variable_set(:"@#{name}", value)
|
2022
|
+
@files_to_run = nil
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
def clear_values_derived_from_example_status_persistence_file_path
|
2026
|
+
@last_run_statuses = nil
|
2027
|
+
@spec_files_with_failures = nil
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
def configure_group_with(group, module_list, application_method)
|
2031
|
+
module_list.items_for(group.metadata).each do |mod|
|
2032
|
+
__send__(application_method, mod, group)
|
2033
|
+
end
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
def add_hook_to_existing_matching_groups(meta, scope, &block)
|
2037
|
+
# For example hooks, we have to apply it to each of the top level
|
2038
|
+
# groups, even if the groups do not match. When we apply it, we
|
2039
|
+
# apply it with the metadata, so it will only apply to examples
|
2040
|
+
# in the group that match the metadata.
|
2041
|
+
# #2280 for background and discussion.
|
2042
|
+
if scope == :example || scope == :each || scope.nil?
|
2043
|
+
world.example_groups.each(&block)
|
2044
|
+
else
|
2045
|
+
meta = Metadata.build_hash_from(meta.dup)
|
2046
|
+
on_existing_matching_groups(meta, &block)
|
2047
|
+
end
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
def on_existing_matching_groups(meta)
|
2051
|
+
world.traverse_example_group_trees_until do |group|
|
2052
|
+
metadata_applies_to_group?(meta, group).tap do |applies|
|
2053
|
+
yield group if applies
|
2054
|
+
end
|
2055
|
+
end
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
def metadata_applies_to_group?(meta, group)
|
2059
|
+
meta.empty? || MetadataFilter.apply?(:any?, meta, group.metadata)
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
if RSpec::Support::RubyFeatures.module_prepends_supported?
|
2063
|
+
def safe_prepend(mod, host)
|
2064
|
+
host.__send__(:prepend, mod) unless host < mod
|
2065
|
+
end
|
2066
|
+
end
|
2067
|
+
|
2068
|
+
if RUBY_VERSION.to_f >= 1.9
|
2069
|
+
def safe_include(mod, host)
|
2070
|
+
host.__send__(:include, mod) unless host < mod
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
def safe_extend(mod, host)
|
2074
|
+
host.extend(mod) unless host.singleton_class < mod
|
2075
|
+
end
|
2076
|
+
else # for 1.8.7
|
2077
|
+
# :nocov:
|
2078
|
+
def safe_include(mod, host)
|
2079
|
+
host.__send__(:include, mod) unless host.included_modules.include?(mod)
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
def safe_extend(mod, host)
|
2083
|
+
host.extend(mod) unless (class << host; self; end).included_modules.include?(mod)
|
2084
|
+
end
|
2085
|
+
# :nocov:
|
2086
|
+
end
|
2087
|
+
|
2088
|
+
def define_mixed_in_module(mod, filters, mod_list, config_method, &block)
|
2089
|
+
unless Module === mod
|
2090
|
+
raise TypeError, "`RSpec.configuration.#{config_method}` expects a module but got: #{mod.inspect}"
|
2091
|
+
end
|
2092
|
+
|
2093
|
+
meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
|
2094
|
+
mod_list.append(mod, meta)
|
2095
|
+
on_existing_matching_groups(meta, &block)
|
2096
|
+
end
|
2097
|
+
end
|
2098
|
+
# rubocop:enable Metrics/ClassLength
|
2099
|
+
end
|
2100
|
+
end
|