Sha256: 65ad21dcbcc9c002ebc8ccfc01f8c4512eb579f6f35926f704e8dc282c1a063b
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
require 'spec_helper' module Alf describe Heading, "cardinality" do subject{ heading.cardinality } after do subject.should eq(heading.count) subject.should eq(heading.size) end context 'on an empty heading' do let(:heading){ Heading.new({}) } it{ should eq(0) } end context 'on a non-empty heading' do let(:heading){ Heading.new({:foo => :bar}) } it{ should eq(1) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems