search for: complete_purchase

Displaying 1 result from an estimated 1 matches for "complete_purchase".

2006 Nov 21
6
Spec Naming (was: Rspec Brown Bag)
...e specdoc reads more confidently without it -- the spec doc says, "this is the way things are" rather than "this is kinda sorta maybe how the system works (if there are no bugs)". context "A user purchasing items" do specify "creates an order" do @user.complete_purchase.should_be_instance_of Order end # ... end It''s just a matter of taste in the end, I suppose, but is there a recommended practice for naming specs? Cheers, /Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/...