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