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.2.2 | example/spec/steps/steps.rb |
turnip_formatter-0.2.1 | example/spec/steps/steps.rb |