spec/support/puppet_perimeter.rb in kindergarten-0.0.5 vs spec/support/puppet_perimeter.rb in kindergarten-0.1.0
- old
+ new
@@ -1,10 +1,12 @@
class PuppetPerimeter < Kindergarten::Perimeter
+ purpose :puppets
+
class Puppet
end
- govern do |child|
+ govern do
can [:play_with,:dress,:nappy_change], Puppet
cannot [:tear, :bbq], Puppet
end
def grab_puppet
@@ -14,6 +16,6 @@
def play_puppet(puppet, action)
guard(:action, puppet)
end
sandbox :grab_puppet, :play_puppet
-end
\ No newline at end of file
+end