Sha256: f2073e8258c4d17041e04682322bb4ec48cd7bf4b99863c8162a9165f3c6494a
Contents?: true
Size: 564 Bytes
Versions: 5
Compression:
Stored size: 564 Bytes
Contents
require 'spec_helper' describe Chicago::ETL::Screens::CompositeScreen do let(:screen) do i = 0 lambda {|row, errors| i += 1 errors << i [row, errors] } end it "calls all child screens" do row, errors = described_class.new([screen, screen]).call({:a => 1}, []) row.should == {:a => 1} errors.should == [1,2] end it "supports variable arguments in the constructor" do row, errors = described_class.new(screen, screen).call({:a => 1}, []) row.should == {:a => 1} errors.should == [1,2] end end
Version data entries
5 entries across 5 versions & 1 rubygems