Sha256: 83a389cbcf975e5814e18bef5b4a2257e15b2fe8c267fce8faa335c51b808242
Contents?: true
Size: 491 Bytes
Versions: 29
Compression:
Stored size: 491 Bytes
Contents
require "calabash-cucumber" # Cucumber -d must pass, but support/env.rb is not eval'd on dry runs. # We must detect that the user wants to use pre-defined steps. dir = File.expand_path(File.dirname(__FILE__)) env = File.join(dir, "env.rb") contents = File.read(env).force_encoding("UTF-8") contents.split($-0).each do |line| # Skip comments. next if line.chars[0] == "#" if line[/calabash-cucumber\/cucumber/, 0] require "calabash-cucumber/calabash_steps" break end end
Version data entries
29 entries across 29 versions & 1 rubygems