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

Version Path
rambo_ruby-0.7.1 features/support/cucumber_helper.rb
rambo_ruby-0.7.0 features/support/cucumber_helper.rb
rambo_ruby-0.6.0 features/support/cucumber_helper.rb
rambo_ruby-0.5.0 features/support/cucumber_helper.rb
rambo_ruby-0.4.0 features/support/cucumber_helper.rb
rambo_ruby-0.3.3 features/support/cucumber_helper.rb
rambo_ruby-0.3.2 features/support/cucumber_helper.rb
rambo_ruby-0.3.1 features/support/cucumber_helper.rb
rambo_ruby-0.3.0 features/support/cucumber_helper.rb
rambo_ruby-0.2.3 features/support/cucumber_helper.rb
rambo_ruby-0.2.2 features/support/cucumber_helper.rb
rambo_ruby-0.2.1 features/support/cucumber_helper.rb
rambo_ruby-0.2.0 features/support/cucumber_helper.rb