This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webrat "should raise an error", :pass => [:rails, :rack, :mechanize], :pending => [:selenium] do | |
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# |