require 'spec_helper' module Diagnostics module Data describe List do let(:list) { described_class.new(['a', 'b', 'c']) } describe '#plain' do specify do list.plain.should eq("a\nb\nc") end end describe '#html' do specify do list.html.should eq('a
b
c') end end end end end