Sha256: e9c7a0e0e6a33e5c2a331445ffae50b07ce8f35cc24f5fc74cc2c8268a6e26f5

Contents?: true

Size: 256 Bytes

Versions: 50

Compression:

Stored size: 256 Bytes

Contents

def file_should_exist(file)
  File.exists?(File.expand_path(file)).should be_true
end

def file_should_contain(file, pattern)
  lines = File.foreach(File.expand_path(file)).map { |line| line.chomp }
  lines.find_index(pattern.chomp).should_not be_nil
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
cucumber-chef-1.0.2 features/support/filetools.rb
cucumber-chef-1.0.1 features/support/filetools.rb
cucumber-chef-1.0.0 features/support/filetools.rb
cucumber-chef-0.5.2 features/support/filetools.rb
cucumber-chef-0.5.1 features/support/filetools.rb
cucumber-chef-0.5.0 features/support/filetools.rb
cucumber-chef-0.4.4 features/support/filetools.rb
cucumber-chef-0.4.2 features/support/filetools.rb
cucumber-chef-0.4.1 features/support/filetools.rb
cucumber-chef-0.4.0 features/support/filetools.rb