Sha256: 73be2fc3ef4983be45f26098bdaf04a3b46bb978689b8bd28478083a0efa762a
Contents?: true
Size: 696 Bytes
Versions: 3
Compression:
Stored size: 696 Bytes
Contents
require 'spec_helper' describe Itiel::Extract::ChainedStep do before :each do klass = Class.new klass.send(:include, Itiel::Extract::ChainedStep) @step = klass.new @stream = double end describe "#start" do before :each do @next_step = double @step.next_step = @next_step end it "extracts and sends the stream to the next step" do allow(@step).to receive(:extract).and_return(@stream) allow(@next_step).to receive(:input=).and_return(@stream) @step.start end end describe "#extract" do it "raises an exception" do expect { @step.extract }.to raise_error Itiel::MethodNotImplementedException end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
itiel-0.1.2 | spec/extract/chained_step_spec.rb |
itiel-0.1.1 | spec/extract/chained_step_spec.rb |
itiel-0.1.0 | spec/extract/chained_step_spec.rb |