Commit d0e492eb

mo khan <mo@mokhan.ca>
2014-09-22 03:10:49
fix broken spec.
1 parent 4fc93ce
Changed files (1)
spec/features/upload_avatar_spec.rb
@@ -12,7 +12,7 @@ describe "uploading an avatar", js: true do
     click_button("Sign In")
     visit new_my_avatar_path
     file = File.expand_path(File.join(Rails.root, '/spec/fixtures/images/gorilla.jpg'))
-    within(".edit_photo") do
+    within(".new_photo") do
       attach_file('photo_image', file)
     end
     click_button "Upload picture"