require 'spec_helper' module Diagnostics module Data describe Attribute do let(:attribute) { described_class.new('attr', 'val') } describe '#plain' do specify do attribute.plain.should eq('attr: val') end end describe '#html' do specify do attribute.html.should eq('attr: val') end end end end end