Sha256: 024764dc5946dcd6d3d1fcbd9dd518e82039916c4eca68d9275cf45c5603326d

Contents?: true

Size: 414 Bytes

Versions: 10

Compression:

Stored size: 414 Bytes

Contents

module Escape
  step "I escape" do
    @escape_result = (@monsters.count <= 2)
  end

  step "I was able to escape" do
    expect(@escape_result).to be_true
  end

  step "I could not escape" do
    expect(@escape_result).to be_false
  end
end

steps_for :escape do
  include Escape
end

steps_for :master_of_escape do
  include Escape

  step "I escape" do
    @escape_result = (@monsters.count <= 100)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
turnip_formatter-0.2.10 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.9 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.8 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.7 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.6 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.5 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.4 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.3 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.2 example/spec/steps/escape_steps.rb
turnip_formatter-0.2.1 example/spec/steps/escape_steps.rb