search for: initial_item_count

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

2008 Mar 13
22
Specifing methods in a steps_for block
Hey list, I''m refactoring some much-used functionality into a common_steps step group. Methods like this are in there: steps_for :common do Given "a number of existing $types?" do |type| @initial_item_count = type.singularize.classify.constantize.count end When "the user adds an invalid $type" do |type| post "/#{type.pluralize}/create", type.to_sym => {} end When "the user adds a valid $type" do |type| post "/#{type.pluralize}/create",...