Sha256: fe628ea4c2853fc29870943991a062837354bbc6cf50b01a10fdc472e7c56ebb

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

require 'minitest/spec'

describe_recipe 'rewind::default' do
  describe 'the first file' do
    it 'should get created' do
      file('/tmp/first_file').must_exist
    end

    it 'should be rewound' do
      file('/tmp/first_file').must_include 'a rewound file'
    end
  end

  it 'should create the second file' do
    file('/tmp/second_file').must_exist
  end

  it 'should not create the third file' do
    file('/tmp/third_file').wont_exist
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chef-rewind-0.0.9 spec/data/cookbooks/rewind/files/default/test/default_test.rb