Sha256: 9f0e23fbcbb3ad5916ab210a36fca55dbdacef0d628faa6fd60b94fbd5551e1b

Contents?: true

Size: 337 Bytes

Versions: 19

Compression:

Stored size: 337 Bytes

Contents

shared_examples_for "a generated file" do |context_var|
  before do
    Dir.chdir(tempdir) do
      allow(generator.chef_runner).to receive(:stdout).and_return(stdout_io)
      generator.run
    end
  end

  it "should contain #{context_var} from the generator context" do
    expect(File.read(file)).to match line
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
chef-dk-3.9.0 spec/shared/a_generated_file.rb
chef-dk-3.8.14 spec/shared/a_generated_file.rb
chef-dk-3.7.23 spec/shared/a_generated_file.rb
chef-dk-3.6.57 spec/shared/a_generated_file.rb
chef-dk-3.5.13 spec/shared/a_generated_file.rb
chef-dk-2.6.2 spec/shared/a_generated_file.rb
chef-dk-3.4.38 spec/shared/a_generated_file.rb
chef-dk-2.6.1 spec/shared/a_generated_file.rb
chef-dk-3.3.23 spec/shared/a_generated_file.rb
chef-dk-3.2.30 spec/shared/a_generated_file.rb
chef-dk-2.5.13 spec/shared/a_generated_file.rb
chef-dk-3.1.0 spec/shared/a_generated_file.rb
chef-dk-2.5.3 spec/shared/a_generated_file.rb
chef-dk-0.15.16 spec/shared/a_generated_file.rb
chef-dk-0.15.15 spec/shared/a_generated_file.rb
chef-dk-0.15.9 spec/shared/a_generated_file.rb
chef-dk-0.13.21 spec/shared/a_generated_file.rb
chef-dk-0.12.0 spec/shared/a_generated_file.rb
chef-dk-0.9.0 spec/shared/a_generated_file.rb