require "rails_helper"

RSpec.describe PlantsController, type: :routing do
  describe "routing" do

    it "routes to #index" do
      expect(get: "/plants").to route_to("plants#index")
    end

    it "routes to #new" do
      expect(get: "/plants/new").to route_to("plants#new")
    end

    it "routes to #show" do
      expect(get: "/plants/1").to route_to("plants#show", id: "1")
    end

    it "routes to #create" do
      expect(post: "/plants").to route_to("plants#create")
    end

  end
end

Add routes specs for plants controller
Add routes specs for plants controller
