spec/support/dining_perimeter.rb in kindergarten-0.0.5 vs spec/support/dining_perimeter.rb in kindergarten-0.1.0
- old
+ new
@@ -1,14 +1,16 @@
class DiningPerimeter < Kindergarten::Perimeter
+ purpose :eating
+
# should raise Unscrubbed
def create_restaurant_scrubbed(args)
Restaurant.create(scrub(args, :name, :description))
end
-
+
# should work
def create_restaurant(args)
safe = rinse(args, :name => /([\w\s\-]+)/, :description => :pass)
Restaurant.create(safe)
end
-
+
sandbox :create_restaurant_scrubbed, :create_restaurant
-end
\ No newline at end of file
+end