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