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-3.0.8 features/support/filetools.rb
cucumber-chef-3.0.7 features/support/filetools.rb
cucumber-chef-3.0.6 features/support/filetools.rb
cucumber-chef-3.0.5 features/support/filetools.rb
cucumber-chef-3.0.4 features/support/filetools.rb
cucumber-chef-3.0.3 features/support/filetools.rb
cucumber-chef-3.0.2 features/support/filetools.rb
cucumber-chef-3.0.1 features/support/filetools.rb
cucumber-chef-3.0.0 features/support/filetools.rb
cucumber-chef-3.0.0.rc.5 features/support/filetools.rb
cucumber-chef-3.0.0.rc.4 features/support/filetools.rb
cucumber-chef-3.0.0.rc.3 features/support/filetools.rb
cucumber-chef-3.0.0.rc.2 features/support/filetools.rb
cucumber-chef-3.0.0.rc.1 features/support/filetools.rb
cucumber-chef-3.0.0.rc.0 features/support/filetools.rb
cucumber-chef-2.1.0.rc.15 features/support/filetools.rb
cucumber-chef-2.1.0.rc.14 features/support/filetools.rb
cucumber-chef-2.1.0.rc.12 features/support/filetools.rb
cucumber-chef-2.1.0.rc.11 features/support/filetools.rb
cucumber-chef-2.1.0.rc.10 features/support/filetools.rb