Module: Soup::TestHelper

Defined in:
lib/soup/test_helper.rb

Instance Method Summary collapse

Instance Method Details

#stub_soup(*snips) ⇒ Object



3
4
5
6
7
# File 'lib/soup/test_helper.rb', line 3

def stub_soup(*snips)
  soup = Soup.new(Soup::Backends::Memory.new)
  snips.each { |s| soup << s }
  soup
end