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

Version Path
calabash-cucumber-0.23.7 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.6 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.5 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.4 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.3 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.2 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.1 features-skeleton/support/dry_run.rb
calabash-cucumber-0.23.0 features-skeleton/support/dry_run.rb
calabash-cucumber-0.22.2 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.10 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.8 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.7 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.6 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.5 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.4 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.2 features-skeleton/support/dry_run.rb
calabash-cucumber-0.21.1 features-skeleton/support/dry_run.rb
calabash-cucumber-0.20.5 features-skeleton/support/dry_run.rb
calabash-cucumber-0.20.4 features-skeleton/support/dry_run.rb
calabash-cucumber-0.20.3 features-skeleton/support/dry_run.rb