Sha256: 5042f745c9d8f0fb76c1d4cbebc78ab6b667afe770122d70efeb46c3752d6895

Contents?: true

Size: 429 Bytes

Versions: 8

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

RSpec.shared_examples 'with_config' do |spec_file|
  config_path = spec_file.to_pathname
  config_path = config_path.dirname.join("#{config_path.basename_noext}_files", 'config.yml')
  temp_config_path = EacRubyUtils::Fs::Temp.file
  FileUtils.cp(config_path, temp_config_path)
  EacRubyUtils::Rspec.default_setup.stub_eac_config_node(self, temp_config_path)
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
avm-0.94.1 lib/avm/rspec/shared_examples/with_config.rb
eac_tools-0.98.0 sub/avm/lib/avm/rspec/shared_examples/with_config.rb
avm-0.94.0 lib/avm/rspec/shared_examples/with_config.rb
eac_tools-0.94.0 sub/avm/lib/avm/rspec/shared_examples/with_config.rb
avm-0.93.0 lib/avm/rspec/shared_examples/with_config.rb
eac_tools-0.92.0 sub/avm/lib/avm/rspec/shared_examples/with_config.rb
avm-0.92.0 lib/avm/rspec/shared_examples/with_config.rb
eac_tools-0.91.0 sub/avm/lib/avm/rspec/shared_examples/with_config.rb