Commit d0e492eb
Changed files (1)
spec
features
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"