Sha256: d6470ac590f603ba2233dff086b40b9b0f10627f86c0e3822fb0611c33558ce6
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
require File.dirname(__FILE__) + "/../../spec_helper" describe IMW::Metadata::Schema do describe "initializing" do it "should merge with a Hash" do IMW::Metadata::Schema.new({:foo => 'foobar'}).should == { :foo => 'foobar' } end it "should merge with a Schema" do IMW::Metadata::Schema.new(IMW::Metadata::Schema.new({:foo => 'foobar'})).should == { :foo => 'foobar' } end it "should ignore anything else" do IMW::Metadata::Schema.new('foobar').should == {} end it "should accept empty args" do IMW::Metadata::Schema.new.should == {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
imw-0.2.18 | spec/imw/metadata/schema_spec.rb |
imw-0.2.17 | spec/imw/metadata/schema_spec.rb |