Sha256: 346bc6afb284b19cb61644c65b9d388f81486f12c35cbb18301e39cfc7aaba54
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe Caramelize::FilterProcessor do let(:filters) { [] } let(:input_wiki) { double(filters: filters) } let(:body) { 'body' } subject(:processor) { described_class.new(input_wiki) } class ReverseFilter def run(body) body.reverse end end describe '#run' do context 'without any filters' do it 'returns same revision body' do expect(processor.run(body)).to eql body end end context 'with reverse filter' do let(:filters) do [ReverseFilter.new] end it 'returns reversed body' do expect(processor.run(body)).to eql body.reverse end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caramelize-0.4.0 | spec/lib/caramelize/filter_processor_spec.rb |