Created
April 24, 2019 06:57
-
-
Save balvig/c2e1c2eea2d0dca4e8648486593c6687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scenario "Viewing events" do | |
visitor = User.create!(name: "Visitor Name") | |
visitor.recipes.create!(title: "Featured Visitor Recipe") | |
- Recipe.create!(title: "Visited Recipe") | |
+ visited_recipe = Recipe.create!(title: "Visited Recipe") | |
+ Event.create!(visitor: visitor, recipe: visited_recipe, action: :liked) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment