Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[#7] Add missing avatar to friends without photo

  • Loading branch information...
commit 253123f67a66e69840bd51cfe9c3cc33cb311393 1 parent 8773776
@harlow harlow authored
View
BIN  public/avatars/medium/missing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/avatars/thumb/missing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
10 spec/acceptance/visitor_adds_new_friend_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.