Sha256: d54b376a50a0db4b1757d6799adf6002cab17a710c1cdf38a67f6d1e85547e8d

Contents?: true

Size: 1.19 KB

Versions: 40

Compression:

Stored size: 1.19 KB

Contents

# 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
require_relative "../lib/octopolo"
Octopolo.instance_variable_set(:@config, Octopolo::Config.new({:deploy_branch => "master"}))

RSpec.configure do |config|
  config.deprecation_stream = 'log/deprecations.log'
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  # environment restoration lifted from facter project
  # https://github.com/puppetlabs/facter/commit/6e29ff7165b8bb63d1deeff6502a0195fa3974e5
  config.before :each do
    # Store any environment variables away to be restored later
    @old_env = {}
    ENV.each_key {|k| @old_env[k] = ENV[k]}
  end

  config.after :each do
    # Restore environment variables after execution of each test
    @old_env.each_pair {|k, v| ENV[k] = v}
    to_remove = ENV.keys.reject {|key| @old_env.include? key }
    to_remove.each {|key| ENV.delete key }
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
octopolo-1.1.0 spec/spec_helper.rb
octopolo-1.0.2 spec/spec_helper.rb
octopolo-1.0.1 spec/spec_helper.rb
octopolo-1.0.0 spec/spec_helper.rb
octopolo-0.4.1 spec/spec_helper.rb
octopolo-0.4.0 spec/spec_helper.rb
octopolo-0.3.6 spec/spec_helper.rb
octopolo-0.3.5 spec/spec_helper.rb
octopolo-0.3.4 spec/spec_helper.rb
octopolo-0.3.3 spec/spec_helper.rb
octopolo-0.3.2 spec/spec_helper.rb
octopolo-0.3.1 spec/spec_helper.rb
octopolo-0.3.0 spec/spec_helper.rb
octopolo-0.2.1 spec/spec_helper.rb
octopolo-0.1.4 spec/spec_helper.rb
octopolo-0.2.0 spec/spec_helper.rb
octopolo-0.1.3 spec/spec_helper.rb
octopolo-0.1.2 spec/spec_helper.rb
octopolo-0.1.1 spec/spec_helper.rb
octopolo-0.1.0 spec/spec_helper.rb