Created
December 14, 2011 01:09
-
-
Save jgarber/1474739 to your computer and use it in GitHub Desktop.
Example refactoring for Greg's Rspec talk
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
describe TournamentRegistration do | |
it "should parameterize itself with id" do | |
registration = Factory.create(:tournament_registration, :team_name => "Mighty Badgers") | |
registration.to_param.should == "#{registration.id}-mighty-badgers" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment