Created
April 24, 2019 06:54
-
-
Save balvig/26c6d3d10b70aba3a4e399380d55383c 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") | |
+ | |
visit events_path | |
- expect(page).to have_text "Grilled aubergines" | |
+ expect(page).to have_text "Visitor Name" | |
+ expect(page).to have_text "Featured Visitor Recipe" | |
+ expect(page).to have_text "liked Visited Recipe" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment