Sha256: 76f71b5879d5c503d2c95fde1c0fb03f8ed20684deb0febe12ed597c2aef176d

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

shared_examples_for 'a processor' do |options={}|
  name = options[:named]
  if name
    it "is registered with the name '#{name}'" do
      Wukong.registry.retrieve(name.to_sym).should_not be_nil
    end
    it{ create_processor(name).should respond_to(:setup)    }
    it{ create_processor(name).should respond_to(:process)  }
    it{ create_processor(name).should respond_to(:finalize) }
    it{ create_processor(name).should respond_to(:stop)     }
    it{ create_processor(name).should respond_to(:notify)   }
  else
    warn "Must supply a name for a processor you want to test"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wukong-3.0.0.pre2 lib/wukong/spec_helpers/shared_examples.rb