Sha256: 9e456d69c1894143b3d8f068fac5bfae8d782a5e0d5e97780fded56a4979a186

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

steps_for :red_dragon do
  use_steps :dragon

  attr_accessor :red_dragon

  def dragon_attack
    attack = super
    if red_dragon
      attack + 15
    else
      attack
    end
  end

  step "the dragon breathes fire" do
    self.red_dragon = 1
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
turnip-0.3.1 examples/red_dragon_steps.rb
turnip-0.3.0 examples/red_dragon_steps.rb