require 'rails_helper'

RSpec.describe IdeasController, type: :controller do
  describe 'GET #index' do
    it "renders the index template" do
      get :index
      expect(response).to render_template("index")
    end
  end 
end

require 'rails_helper'

RSpec.describe IdeasController, type: :controller do
  render_views # so that templates are rendered

  describe 'GET #index' do
    it "renders the index template" do
      get :index
      expect(response).to render_template("index")
    end

    it "can show an idea" do
      idea = Idea.create!(name: "Drink soy milk", description: "It is full of beans!")
      get :show, params: { id: idea.id }
      expect(response).to render_template("show")
      expect(response.body).to include(idea.name)
      expect(response.body).to include(idea.description)
    end
  end
end

Add rpec for GET /ideas/show/id
Add rpec for GET /ideas/show/id
