Sha256: 52ba839d48171510ca3567a0a88c043942e997779c15a81eb1e626ef7c9770e9
Contents?: true
Size: 314 Bytes
Versions: 3
Compression:
Stored size: 314 Bytes
Contents
require 'rspec' require 'linepipe' module Linepipe describe Step, '#apply' do let(:step) { Step.new('upcase', &:upcase) } it 'exposes a name' do expect(step.name).to eq('upcase') end it 'calls the block with the data' do expect(step.apply('data')).to eq('DATA') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linepipe-0.1.2 | spec/pipeline/step_spec.rb |
linepipe-0.1.1 | spec/pipeline/step_spec.rb |
linepipe-0.1.0 | spec/pipeline/step_spec.rb |