diff --git a/lib/torquespec/daemon.rb b/lib/torquespec/daemon.rb index d65197b..65f8379 100644 --- a/lib/torquespec/daemon.rb +++ b/lib/torquespec/daemon.rb @@ -31,9 +31,8 @@ def stop end def run(name, reporter) - puts "JC: testing #{name}" + puts "JC: run #{name}" example_group = @world.example_groups.find { |g| g.name == name } - puts "JC: found #{example_group}" example_group.run( reporter ) end @@ -58,3 +57,19 @@ def children end end end + +# We don't actually serialize Proc objects, but we prevent a TypeError +# when an object containing a Proc is serialized, e.g. when an Example +# is passed to a remote Reporter. This works for us because the +# Reporter doesn't use the Example's Proc objects. +class Proc + def marshal_dump + end + def marshal_load *args + end + def _dump *args + end + def self._load *args + new {} + end +end