Sha256: 7b03d182b166b4ed0b43db599166343945180330e640b9d494d98b98fd1ef587
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe PanicBoardData::SingleValue do let(:single_value) { PanicBoardData::SingleValue.new heading, value } [:heading, :value, :length].to_objects {[ ['the heading', 'the value', 1727], ['one', 'two', 1713] ]}.each do |test| describe "to_html" do let(:heading) { test.heading } let(:value) { test.value } it "should return a bunch of html" do result = single_value.to_html result.length.must_equal test.length result.include?(test.heading).must_equal true result.include?(test.value).must_equal true end end end end
Version data entries
4 entries across 4 versions & 1 rubygems