Sha256: d7e0640fd2ee411a7be93aaf2fdc5bc039a3d5857e682280c4ee5cc2b1ea335d
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
require 'spec_helper' describe Wukong::Processor do subject { Wukong::Processor.new } describe "has an interface" do it{ should respond_to(:setup) } it{ should respond_to(:process) } it{ should respond_to(:finalize) } it{ should respond_to(:stop) } it{ should respond_to(:notify) } end describe "default process method" do it "yields the original input record by default on process" do expect { |b| subject.process(1, &b) }.to yield_with_args(1) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wukong-3.0.1 | spec/wukong/processor_spec.rb |
wukong-3.0.0 | spec/wukong/processor_spec.rb |