Sha256: 81fbb108185ad5eae80fa3f575bb081b81ef9c4dd06776a66fd010485bed6fa5
Contents?: true
Size: 258 Bytes
Versions: 2
Compression:
Stored size: 258 Bytes
Contents
steps_for :dragon do use_steps :knight attr_accessor :dragon def dragon_attack dragon * 10 end step "there is a dragon" do self.dragon = 1 end step "the dragon attacks the knight" do knight.attacked_for(dragon_attack) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip-0.3.1 | examples/dragon_steps.rb |
turnip-0.3.0 | examples/dragon_steps.rb |