mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 10:02:07 -04:00
Added tests for "keep in touch" partial
This commit is contained in:
24
spec/views/home/_keep_in_touch.html.haml_spec.rb
Normal file
24
spec/views/home/_keep_in_touch.html.haml_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user