require "test_helper" describe "Workflow", :capybara do it "has index" do visit listings_path page.has_css? '.count', text: '1' page.has_link? '.sortable', count: 2 page.has_link? '.copy', count: 1 page.has_link? '.edit', count: 1 page.has_link? '.destroy', count: 1 end end