Added tests for "keep in touch" partial

This commit is contained in:
Skud
2013-08-09 13:29:43 +10:00
parent 0eafaf6311
commit 7bba2b9e2c

View File

@@ -0,0 +1,24 @@
require 'spec_helper'
describe 'home/_keep_in_touch.html.haml', :type => "view" do
before :each do
render
end
it 'has a heading' do
assert_select 'h2', 'Keep in touch'
end
it 'links to twitter' do
assert_select 'a', :href => 'http://twitter.com/growstufforg'
end
it 'links to the blog' do
assert_select 'a', :href => 'http://blog.growstuff.org'
end
it 'links to the newsletter' do
assert_select 'a', :href => 'http://blog.growstuff.org/newsletter'
end
end