spec/unit/meta_spec.rb in crystalmeta-0.9.4 vs spec/unit/meta_spec.rb in crystalmeta-1.0.0
- old
+ new
@@ -7,11 +7,11 @@
context '#store' do
it 'stringifies keys' do
subject.store :title => 'something'
subject.store :head => 'something else'
- options.should == {'title' => 'something', 'head' => 'something else'}
+ expect(options).to eq Hash['title' => 'something', 'head' => 'something else']
end
it 'merges options deeply' do
subject.store({
:og => {
@@ -26,16 +26,16 @@
'url' => 'something',
},
:"fb:admins" => '322132'
})
- options.should == {
+ expect(options).to eq Hash[
'og' => {
'title' => 'og title',
'site_name' => 'site name 2',
'url' => 'something',
},
'fb:admins' => '322132'
- }
+ ]
end
end
end