summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-01-17 12:21:10 -0700
committermo khan <mo@mokhan.ca>2015-01-17 12:21:10 -0700
commitcea3cd622a9cd11a15b4125e7ac70ae5a4c54562 (patch)
tree463140e4f124871c97bffe690d7055dc568579d3 /spec/features
parent980df161d60df14af98733057649cdd6ba98deca (diff)
fix feature spec.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/add_to_favorites_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/features/add_to_favorites_spec.rb b/spec/features/add_to_favorites_spec.rb
index eef278bf..1c777286 100644
--- a/spec/features/add_to_favorites_spec.rb
+++ b/spec/features/add_to_favorites_spec.rb
@@ -1,6 +1,6 @@
require "rails_helper"
-describe "adding a cake to your favorites", js: true do
+describe "adding a cake to your favorites" do
let!(:creation) { create(:creation, user: create(:user), photos: [create(:photo)]) }
let!(:me) { create(:user, password: "password") }
@@ -13,10 +13,11 @@ describe "adding a cake to your favorites", js: true do
click_button("Sign In")
visit root_path
click_link(creation.name[0...12])
+ puts page.html
click_link_or_button("add-to-favorites-button")
end
- it "should redirect you to the cake after" do
+ it "redirects you to the cake after" do
expect(page).to have_content("This has been added to your favorites")
end
end