mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-02 05:31:01 -05:00
28 lines
749 B
Ruby
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
|