Sha256: 0ca68e9318324d1d4a22ad08e7da7808b196868505947133182b3a3c8b88911b
Contents?: true
Size: 763 Bytes
Versions: 9
Compression:
Stored size: 763 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 "there should be :count monsters" do |count| @monsters.length.should eq(count.to_i) 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
9 entries across 9 versions & 1 rubygems