Permalink
Browse files

[#7] Add missing avatar to friends without photo

  • Loading branch information...
1 parent 8773776 commit 253123f67a66e69840bd51cfe9c3cc33cb311393 @harlow harlow committed Aug 2, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -11,4 +11,14 @@
page.should have_css('p', text: 'Mona Lisa')
page.should have_xpath("//img[contains(@src, 'mona_lisa.jpg')]")
end
+
+ scenario 'add friend without image' do
+ visit root_path
+ click_link 'New Friend'
+ fill_in 'Name', with: 'Mona Lisa'
+ click_button 'Create Friend'
+
+ page.should have_css('p', text: 'Mona Lisa')
+ page.should have_xpath("//img[contains(@src, 'missing.png')]")
+ end
end

0 comments on commit 253123f

Please sign in to comment.