Created
April 24, 2019 06:54
-
-
Save balvig/6ac60a216ee2a7193ba4889304e1cfc3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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