1 class PlacesScenario < Scenario::Base
4 create_place "Taj Mahal", "India"
5 create_place "Whitehouse", "Washington DC"
9 def create_place(name, location)
10 attributes = place_params(:name => name, :location => location)
11 create_record(:place, name.strip.gsub(' ', '_').underscore.to_sym, attributes)
14 def place_params(attributes = {})
17 :location => "Nowhere"