Sha256: 0c3126bad4c47c53a52e1ae44d95716009c47f6d1c7985eb4f377fb34c8beadb

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

module CucumberHelper
  def read_example(example)
    possible_paths = [
      File.expand_path("../examples/raml/#{example}", __FILE__),
      File.expand_path("../examples/rspec/#{example}", __FILE__),
      File.expand_path("../examples/rspec/#{example}", __FILE__)
    ]

    possible_paths.each do |path|
      return File.read(path) rescue next
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rambo_ruby-0.1.0 features/support/cucumber_helper.rb