Sha256: efc1692e2be42333e1d45308af98c1ff7812dc56a87fd69610c69c9c0fddc581
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') module Rails::MetaTags describe Builder do describe '#render_tags' do subject { Builder.new(MockViewContext.new) } specify { subject.render_tags.should_not be_nil } end describe 'using a resource' do subject { b = Builder.new(MockViewContext.new) b.resource = TestObject.new b } it 'returns the title of the resource' do subject.title.should == 'new article' end it 'returns the title of the resource' do subject.full_title.should == 'new article | SITE' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_meta_tags-0.2.9 | spec/builder_spec.rb |
rails_meta_tags-0.2.8 | spec/builder_spec.rb |