Sha256: 85d7b22572fb7a8b6d1820a2334d95ae9dd68f894f43417ec11622c1f46ee548
Contents?: true
Size: 366 Bytes
Versions: 13
Compression:
Stored size: 366 Bytes
Contents
module CucumberHelper def read_example(example) possible_paths = [ File.join(CUCUMBER_DIR_ROOT, "examples/raml/#{example}"), File.join(CUCUMBER_DIR_ROOT, "examples/rspec/#{example}"), File.join(CUCUMBER_DIR_ROOT, "examples/rspec/#{example}") ] possible_paths.each do |path| return File.read(path) rescue next end end end
Version data entries
13 entries across 13 versions & 1 rubygems