Skip to content

Instantly share code, notes, and snippets.

@balvig
Created April 24, 2019 06:54
Show Gist options
  • Save balvig/26c6d3d10b70aba3a4e399380d55383c to your computer and use it in GitHub Desktop.
Save balvig/26c6d3d10b70aba3a4e399380d55383c to your computer and use it in GitHub Desktop.
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