Sha256: bbce2d9821f9a1b723c59e15e8df9119e33045c5ade8cfbf24e841960488f35a
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
#Given(/^([\w]+) slices of vegetables$/) do |vegetable_size| # block vars vegetable_size = "small" # | # V @vegetable_slice_size = vegetable_size.to_sym #Given(/^a(nother)? layer of vegetables is placed in the jar$/) do |repeat| # block vars repeat = "" # | # V @jar ||= [] put_vegetables_in_jar #Given(/^then (more )?salt is added$/) do |more| # block vars more = "" # | # V @salt = 1 @salt += 1 if more #Given(/^a(nother)? layer of vegetables is placed in the jar$/) do |repeat| # block vars repeat = "nother" # | # V @jar ||= [] put_vegetables_in_jar #Given(/^then (more )?salt is added$/) do |more| # block vars more = "more " # | # V @salt = 1 @salt += 1 if more #Given(/^some garlic is chopped up$/) do @garlic ||= :some @garlic.to_s.chop #Given(/^garlic is layered into the jar$/) do @jar << {:garlic => true} #Given(/^some more vegetables are placed into the jar$/) do put_vegetables_in_jar #When(/^the jar is nearly full$/) do @jar << {:nearly_full => true} #Then(/^a stone should be put on top$/) do @jar << {:stone => true}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sauerkraut-0.0.3 | test/runtest1.output |