From 7bba2b9e2c4e85a570bc690d71f9bc88a7a9bbe1 Mon Sep 17 00:00:00 2001 From: Skud Date: Fri, 9 Aug 2013 13:29:43 +1000 Subject: [PATCH] Added tests for "keep in touch" partial --- .../home/_keep_in_touch.html.haml_spec.rb | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 spec/views/home/_keep_in_touch.html.haml_spec.rb diff --git a/spec/views/home/_keep_in_touch.html.haml_spec.rb b/spec/views/home/_keep_in_touch.html.haml_spec.rb new file mode 100644 index 000000000..637e0ee46 --- /dev/null +++ b/spec/views/home/_keep_in_touch.html.haml_spec.rb @@ -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