Sha256: 342eb033b33f21451e0ed4fb024fa9651a24e985f9698d982408341604be1800
Contents?: true
Size: 770 Bytes
Versions: 3
Compression:
Stored size: 770 Bytes
Contents
require_relative '../spec_helper' module LovelyRufus describe HangoutWrapper do describe '#call' do it 'removes hangouts from the text' do text = <<-end.dedent I go crazy when I hear a cymbal and a hi-hat with a souped-up tempo end wrap = <<-end.dedent I go crazy when I hear a cymbal and a hi-hat with a souped-up tempo end hw = HangoutWrapper.new hw.call(Wrap[text, width: 35]).must_equal Wrap[wrap, width: 35] end it 'passes the fixed text to the next layer and returns its outcome' do final = fake :wrap layer = fake :layer mock(layer).call(any Wrap) { final } HangoutWrapper.new(layer).call(Wrap["I O\nU", width: 4]).must_equal final end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lovely_rufus-0.1.2 | spec/lovely_rufus/hangout_wrapper_spec.rb |
lovely_rufus-0.1.1 | spec/lovely_rufus/hangout_wrapper_spec.rb |
lovely_rufus-0.1.0 | spec/lovely_rufus/hangout_wrapper_spec.rb |