Sha256: c6e29128530c367c72aa04fd945c815dfb28e1c0d38f2f07eba4bea28564419d
Contents?: true
Size: 369 Bytes
Versions: 4
Compression:
Stored size: 369 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Metadata do describe ".new" do it "should initialize data to an empty hash" do Metadata.new.data.should eql({}) end it "should initialize data to the value given in the initializer" do Metadata.new(data: { foo: 'bar' }).data.should eql(foo: 'bar') end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
has_metadata-1.2.0 | spec/metadata_spec.rb |
has_metadata-1.1.1 | spec/metadata_spec.rb |
has_metadata-1.1.0 | spec/metadata_spec.rb |
has_metadata-1.0.0 | spec/metadata_spec.rb |