Sha256: 89729a966d958871d74cf4caf3eb65757ba5a8541615201036bf2a0b1e2a6ef9
Contents?: true
Size: 849 Bytes
Versions: 2
Compression:
Stored size: 849 Bytes
Contents
require 'bundler/setup' require 'meta_tags' shared_examples_for '.set_meta_tags' do it 'should update meta tags' do subject.set_meta_tags(:title => 'hello') subject.meta_tags[:title].should == 'hello' subject.set_meta_tags(:title => 'world') subject.meta_tags[:title].should == 'world' end it 'should use deep merge when updating meta tags' do subject.set_meta_tags(:open_graph => { :title => 'hello' }) subject.meta_tags[:open_graph].should == { :title => 'hello' } subject.set_meta_tags(:open_graph => { :description => 'world' }) subject.meta_tags[:open_graph].should == { :title => 'hello', :description => 'world' } end it 'should normalize :og to :open_graph' do subject.set_meta_tags(:og => { :title => 'hello' }) subject.meta_tags[:open_graph].should == { :title => 'hello' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meta-tags-1.2.6 | spec/spec_helper.rb |
meta-tags-1.2.5 | spec/spec_helper.rb |