Skip to content

Commit

Permalink
Move require of spec_helper into .rspec
Browse files Browse the repository at this point in the history
Because we can! Also because it pads my deletion stats for 2016 far
ahead of @jrafanie for a while.
  • Loading branch information
chrisarcand committed Jan 19, 2016
1 parent ca3775f commit 489a17d
Show file tree
Hide file tree
Showing 942 changed files with 5 additions and 1,625 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--require spec_helper
--color
--order random
1 change: 1 addition & 0 deletions .rspec_ci
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--require spec_helper
--color
--order random
--profile 25
1 change: 1 addition & 0 deletions gems/manageiq_foreman/.rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
2 changes: 0 additions & 2 deletions gems/manageiq_foreman/spec/connection_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'spec_helper'

describe ManageiqForeman::Connection do
before do
unless connection.api_cached?
Expand Down
2 changes: 0 additions & 2 deletions gems/manageiq_foreman/spec/inventory_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'spec_helper'

describe ManageiqForeman::Inventory do
describe "#refresh_configuration" do
it "fetches location details" do
Expand Down
2 changes: 0 additions & 2 deletions gems/manageiq_foreman/spec/manageiq_foreman_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'spec_helper'

describe ManageiqForeman do
it 'should have a version number' do
expect(ManageiqForeman::VERSION).not_to be_nil
Expand Down
2 changes: 0 additions & 2 deletions gems/manageiq_foreman/spec/paged_response_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'spec_helper'

describe ManageiqForeman::PagedResponse do
describe "#initializer" do
context "with index hash" do
Expand Down
1 change: 1 addition & 0 deletions gems/pending/.rspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--require spec_helper
--color
--order random
--format documentation
1 change: 1 addition & 0 deletions gems/pending/.rspec_ci
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--require spec_helper
--color
--order random
--profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'VMwareWebService/MiqVimClientBase'

describe MiqVimClientBase do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/VMwareWebService/MiqVimVm_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'VMwareWebService/MiqVim'

describe MiqVimVm do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'VMwareWebService/VimMappingRegistry'

describe VimMappingRegistry do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "appliance_console/internal_database_configuration"
require "appliance_console/external_httpd_authentication"
require 'appliance_console/principal'
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/appliance_console/certificate_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "fileutils"
require "appliance_console/certificate"

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/appliance_console/cli_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "appliance_console/cli"

describe ApplianceConsole::Cli do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

require "appliance_console/prompts"
require "appliance_console/database_configuration"
require "appliance_console/external_database_configuration"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

require "active_support/all"
require "appliance_console/external_httpd_authentication"
require "appliance_console/prompts"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "appliance_console/internal_database_configuration"

describe ApplianceConsole::InternalDatabaseConfiguration do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "appliance_console/prompts"
require "appliance_console/key_configuration"

Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/appliance_console/logging_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

require "appliance_console/logging"
require "appliance_console/errors"

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/appliance_console/principal_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "appliance_console/principal"

describe ApplianceConsole::Principal do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/appliance_console/prompts_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "stringio"
require "appliance_console/errors"
require "appliance_console/prompts"
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/appliance_console/service_group_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "appliance_console/service_group"
require "linux_admin"

Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/db/MiqBdb/miq_bdb_page_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

require 'db/MiqBdb/MiqBdb'
require "#{__dir__}/test_files"

Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/db/MiqBdb/miq_bdb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

require 'db/MiqBdb/MiqBdb'
require "#{__dir__}/test_files"

Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/db/MiqBdb/miq_bdb_util_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

require 'db/MiqBdb/MiqBdbUtil'
require "#{__dir__}/test_files"

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/db/MiqSqlite/conary_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'db/MiqSqlite/MiqSqlite3'

describe MiqSqlite3DB::MiqSqlite3 do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/db/MiqSqlite/varint_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# encoding: US-ASCII
require "spec_helper"
require 'db/MiqSqlite/MiqSqlite3'

describe MiqSqlite3DB do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/discovery/PortScan_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'discovery/PortScan'

require 'ostruct'
Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/disk/miq_disk_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

require 'ostruct'
require 'disk/MiqDisk'
require 'disk/modules/RawDisk'
Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/disk/modules/raw_disk_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

require 'ostruct'
require 'disk/MiqDisk'
require 'disk/modules/RawDisk'
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/metadata/MIQExtract/MIQExtract_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'metadata/MIQExtract/MIQExtract'

describe MIQExtract do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/metadata/VmConfig/VmConfig_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'metadata/VmConfig/VmConfig'

describe VmConfig do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/metadata/linux/LinuxUtils_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'metadata/linux/LinuxUtils'

describe MiqLinux::Utils do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'openstack/amqp/openstack_rabbit_event_monitor'

describe OpenstackRabbitEventMonitor do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'openstack/openstack_event_monitor'
require 'openstack/amqp/openstack_rabbit_event_monitor'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'openstack/openstack_handle/handle'
require 'fog/openstack'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/duplicate_blocker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "logger"
require "util/duplicate_blocker"
require "timecop"
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-array_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-string'
require 'util/extensions/miq-array'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-benchmark_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-benchmark'
require 'timecop'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-deep_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-deep'

describe 'miq-deep' do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-erb_for_yaml_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-erb_for_yaml'

describe MiqERBForYAML do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-hash_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-hash'

# Subclass of String to test []= substring complex key patch
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-kernel_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-kernel'

describe Kernel do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-module_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-module'
require 'timecop'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-numeric_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-numeric'

describe Numeric do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-object_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-object'

describe Object do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-range_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-range'

describe Range do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-symbol_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-symbol'

describe Symbol do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-to_i_with_method'
require 'active_support/core_ext/numeric'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/extensions/miq-yaml_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/extensions/miq-yaml'

# Subclass of Hash to test instance variables support patch
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-encode_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq-encode'

describe MIQEncode do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-hash_struct_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq-hash_struct'

describe MiqHashStruct do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-ipmi_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "util/miq-ipmi"

describe MiqIPMI do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-password_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: utf-8

require "spec_helper"
require 'util/miq-password'
require 'tempfile'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-syntax-checker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq-syntax-checker'
require 'util/extensions/miq-string'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-system_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq-system'

describe MiqSystem do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-unicode_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq-unicode'

describe 'miq-unicode' do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq-uuid_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq-uuid'

describe MiqUUID do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq_apache/conf_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq_apache'

describe MiqApache::Conf do
Expand Down
2 changes: 0 additions & 2 deletions gems/pending/spec/util/miq_apache/control_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

describe MiqApache::Control do
it "should run_apache_cmd with start when calling start" do
expect(MiqApache::Control).to receive(:run_apache_cmd).with('start')
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq_logger_processor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/miq_logger_processor'

describe MiqLoggerProcessor do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/miq_ssh_util_v2_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/MiqSshUtilV2'

describe MiqSshUtil do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "util/mount/miq_generic_mount_session"

describe MiqGenericMountSession do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/postgres_admin_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "util/postgres_admin"

describe PostgresAdmin do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/system/evm_watchdog_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: utf-8

require "spec_helper"
require 'util/system/evm_watchdog'

describe EvmWatchdog do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/vmdb-logger_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/vmdb-logger'

describe VMDBLogger do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/win32/miq-powershell_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'util/win32/miq-powershell'
require 'time'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/win32/wim_parser_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: US-ASCII

require "spec_helper"
require 'util/win32/wim_parser'
require 'time'

Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/util/xml/miq_rexml_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: UTF-8

require "spec_helper"
require 'util/miq-xml'

describe MIQRexml do
Expand Down
1 change: 0 additions & 1 deletion gems/pending/spec/vmware/esx_thumb_print_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require 'vmware/esx_thumb_print'
require 'vmware/vcenter_thumb_print'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "timecop"
include AutomationSpecHelper

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

describe "MiqAeStateMachineRetry" do
before do
@method_name = 'MY_RETRY_METHOD'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

describe "MiqAeStateMachineSteps" do
before do
@user = FactoryGirl.create(:user_with_group)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

describe "AMAZON best fit" do

let(:user) { FactoryGirl.create(:user_with_group) }
Expand Down
Loading

0 comments on commit 489a17d

Please sign in to comment.