Sha256: d96c7a72008cdf02f5f2160b07ce479ce40c0bd31939292bad53166956114b4d

Contents?: true

Size: 667 Bytes

Versions: 22

Compression:

Stored size: 667 Bytes

Contents

# Based on turnip/examples

step "there is a monster" do
  @monster = 1
end

step "there is a strong monster" do
  @monster = 2
end

step "there is a boss monster" do
  @monster = 3
end

step "I attack it" do
  @attack ||= 1 # no weapon
  @monster -= @attack
end

step "it should die" do
  expect(@monster).to be <= 0
end

step "Fanfare" do
end

step "I equip a weapon" do
  @attack = 2
end

step "there are monsters:" do |monsters|
  @monsters = monsters.map { |row| row[0] }
end

step "the monster sings the following song" do |song|
  @song = song
end

step "the song should have :count lines" do |count|
  @song.to_s.split("\n").length.should eq(count.to_i)
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
turnip_formatter-0.6.0.pre.beta.4 example/spec/steps/steps.rb
turnip_formatter-0.6.0.pre.beta.3 example/spec/steps/steps.rb
turnip_formatter-0.6.0.pre.beta.2 example/spec/steps/steps.rb
turnip_formatter-0.6.0.pre.beta.1 example/spec/steps/steps.rb
turnip_formatter-0.5.0 example/spec/steps/steps.rb
turnip_formatter-0.4.0 example/spec/steps/steps.rb
turnip_formatter-0.3.4 example/spec/steps/steps.rb
turnip_formatter-0.3.3 example/spec/steps/steps.rb
turnip_formatter-0.3.2 example/spec/steps/steps.rb
turnip_formatter-0.3.1 example/spec/steps/steps.rb
turnip_formatter-0.3.0 example/spec/steps/steps.rb
turnip_formatter-0.2.11 example/spec/steps/steps.rb
turnip_formatter-0.2.10 example/spec/steps/steps.rb
turnip_formatter-0.2.9 example/spec/steps/steps.rb
turnip_formatter-0.2.8 example/spec/steps/steps.rb
turnip_formatter-0.2.7 example/spec/steps/steps.rb
turnip_formatter-0.2.6 example/spec/steps/steps.rb
turnip_formatter-0.2.5 example/spec/steps/steps.rb
turnip_formatter-0.2.4 example/spec/steps/steps.rb
turnip_formatter-0.2.3 example/spec/steps/steps.rb