Sha256: e742cf28aac4c8f5d1db2d8ab80f62c15f244405396b561f8017fa5d59bf7aef

Contents?: true

Size: 1.36 KB

Versions: 18

Compression:

Stored size: 1.36 KB

Contents

require 'coveralls'
Coveralls.wear!

require 'linux_admin'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  # config.filter_run :focus

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'

  config.before do
    Kernel.stub(:spawn).and_raise("Spawning is not permitted in specs.  Please change your spec to use expectations/stubs.")
  end

  config.after do
    clear_caches
  end
end

def data_file_path(to)
  File.expand_path(to, File.join(File.dirname(__FILE__), "data"))
end

def sample_output(to)
  File.read(data_file_path(to))
end

def clear_caches
  LinuxAdmin::RegistrationSystem.instance_variable_set(:@registration_type, nil)
end

class LinuxAdmin
  module Distros
    # simply alias test distro to redhat distro for time being
    Distros::Test = Distros::RedHat
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
linux_admin-0.7.0 spec/spec_helper.rb
linux_admin-0.6.0 spec/spec_helper.rb
linux_admin-0.5.7 spec/spec_helper.rb
linux_admin-0.5.6 spec/spec_helper.rb
linux_admin-0.5.5 spec/spec_helper.rb
linux_admin-0.5.4 spec/spec_helper.rb
linux_admin-0.5.3 spec/spec_helper.rb
linux_admin-0.5.2 spec/spec_helper.rb
linux_admin-0.5.1 spec/spec_helper.rb
linux_admin-0.5.0 spec/spec_helper.rb
linux_admin-0.4.1 spec/spec_helper.rb
linux_admin-0.4.0 spec/spec_helper.rb
linux_admin-0.3.0 spec/spec_helper.rb
linux_admin-0.2.3 spec/spec_helper.rb
linux_admin-0.2.2 spec/spec_helper.rb
linux_admin-0.2.1 spec/spec_helper.rb
linux_admin-0.2.0 spec/spec_helper.rb
linux_admin-0.1.3 spec/spec_helper.rb