Skip to content

Instantly share code, notes, and snippets.

# the current spike
simulated "should raise an error" do
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError)
end
# our fake tagging, since we own "simualated"
simulated "should raise an error", :rack, :mechanize, :rails do
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError)
end
webrat "should raise an error", :pass => [:rails, :rack, :mechanize], :pending => [:selenium] do
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError)
end
require File.expand_path(File.dirname(__FILE__), '/edgecase')
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used calculate the
# score of a single roll of the dice.
#
# A greed roll is scored as follows:
#
# * A set of three ones is 1000 points
#