Files
growstuff/spec/views/layouts/_meta_spec.rb
2013-01-28 20:23:03 -05:00

28 lines
749 B
Ruby

require 'spec_helper'
describe 'layouts/_meta.html.haml', :type => "view" do
before(:each) do
render
end
it 'should have a Posts RSS feed' do
posts_rss = url_for(:controller => 'posts', :format => 'rss', :only_path => false)
assert_select "head>link[href=#{posts_rss}]"
end
it 'should have a Crops RSS feed' do
crops_rss = url_for(:controller => 'crops', :format => 'rss', :only_path => false)
assert_select "head>link[href=#{crops_rss}]"
end
it 'should have a Plantings RSS feed' do
plantings_rss = url_for(:controller => 'plantings', :format => 'rss', :only_path => false)
assert_select "head>link[href=#{plantings_rss}]"
end
it 'should have a title' do
assert_select "head>title"
end
end