summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-09-20 20:43:32 -0600
committermo khan <mo@mokhan.ca>2014-09-20 20:43:32 -0600
commit62a26c3e506012f003dc47f4e125e1e730b8d02b (patch)
tree55e7f2b53f3d2a3ff22165f9ef31a8fcbf1c4178 /spec/features
parente7fcf236ffc142d9bf80a00d018c76efbd1f7d2a (diff)
fix broken specs.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/upload_avatar_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/upload_avatar_spec.rb b/spec/features/upload_avatar_spec.rb
index 3d552c22..2ac0a3a5 100644
--- a/spec/features/upload_avatar_spec.rb
+++ b/spec/features/upload_avatar_spec.rb
@@ -10,15 +10,15 @@ describe "uploading an avatar", js: true do
fill_in('session_password', :with => "password")
end
click_button("Sign In")
- visit edit_my_avatar_path(user)
+ visit new_my_avatar_path
file = File.expand_path(File.join(Rails.root, '/spec/fixtures/images/gorilla.jpg'))
- within(".edit_avatar") do
- attach_file('avatar_avatar', file)
+ within(".edit_photo") do
+ attach_file('photo_image', file)
end
click_button "Upload picture"
end
it "should display a success message" do
- page.should have_content(I18n.t(:avatar_uploaded))
+ expect(page).to have_content(I18n.t(:avatar_uploaded))
end
end