Sha256: 6113db7d68e91905690f21aee28b738f57b1b89ea94b3da2eadfbb3418809dcc
Contents?: true
Size: 867 Bytes
Versions: 5
Compression:
Stored size: 867 Bytes
Contents
require 'spec_helper' describe Crystal::Meta do def options subject.send(:options) end context '#store' do it 'stringifies keys' do subject.store :title => 'something' subject.store :head => 'something else' options.should == {'title' => 'something', 'head' => 'something else'} end it 'merges options deeply' do subject.store({ :og => { :title => 'og title', :site_name => 'site name' } }) subject.store({ 'og' => { 'site_name' => 'site name 2', 'url' => 'something', }, :"fb:admins" => '322132' }) options.should == { 'og' => { 'title' => 'og title', 'site_name' => 'site name 2', 'url' => 'something', }, 'fb:admins' => '322132' } end end end
Version data entries
5 entries across 5 versions & 1 rubygems