Sha256: 0c50a4c25781778ead61cf915ce2bb02ded0c69c6af62b159792d3c101025cfc
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' describe Earl::HashInquirer do subject { Earl::HashInquirer.new :foo => 'bar', :baz => 123, :woo => false } it { should be_a( Hash ) } it { should eql( :foo => 'bar', :baz => 123, :woo => false ) } describe 'string keys' do its( :foo? ){ should be_true } end describe 'numeric keys' do its( :baz? ){ should be_true } end describe 'boolean keys' do its( :woo? ){ should be_false } end describe 'nonexistant keys' do its( :sup? ){ should be_false } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
earl-0.2.0 | spec/earl/hash_inquirer_spec.rb |