spec/seam/worker_spec.rb in seam-1.1.2 vs spec/seam/worker_spec.rb in seam-1.1.3

- old
+ new

@@ -15,10 +15,15 @@ it "should match the name" do worker = Seam::Worker.new worker.handles(:darren) worker.step.must_equal "darren" end + + it "should drop namespaces" do + worker = ThisIsANamespace::ThisIsAnotherNamespace::IAmAWorker.new + worker.step.must_equal "i_am_a" + end end describe "inherited & all" do before do @@ -955,5 +960,14 @@ class IWillNotCallHandlesWorker < Seam::Worker # no calling handles here def process; end end + +module ThisIsANamespace + module ThisIsAnotherNamespace + class IAmAWorker < Seam::Worker + def process; end + end + end +end +