Sha256: b13b7cc53e669ced34ffc92d939adaaa1b153a550fae559109bf963821d9456c
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' describe ArtTypograph do context '.process' do let(:options) { {:use_br => true} } let(:request) { double } let(:text) { 'text' } let(:result) { "<p>text</p>" } it 'proxies to request' do ArtTypograph::Request.should_receive(:new).with(options).and_return(request) request.should_receive(:process).with(text).and_return(result) ArtTypograph.process(text, options).should == result end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
art_typograph-0.1.1 | spec/art_typograph_spec.rb |
art_typograph-0.1.0 | spec/art_typograph_spec.rb |