lib/bait/build.rb in bait-0.3.0 vs lib/bait/build.rb in bait-0.3.1

- old
+ new

@@ -38,13 +38,13 @@ end end self end - after_destroy :remove_sandbox - - def remove_sandbox - tester.cleanup! + def queued? + !self.reload.tested? end + + after_destroy { tester.cleanup! } end end