require 'spec_helper'

describe IdeasController do
  before do
    @idea = create(:idea)
  end

  describe "GET 'index'" do
    it "returns http success" do
      get 'index'
      response.should be_success
    end
  end

  describe "GET 'new'" do
    it "returns http success" do
      get 'new'
      response.should be_success
    end
  end

  describe "GET 'edit'" do
    it "returns http success" do
      get 'edit', { id: 1 }
      response.should be_success
    end
  end

  describe "GET 'show'" do
    it "returns http success" do
      get 'show', { id: @idea.id }
      response.should be_success
    end
  end

  pending "needs expanded GET, POST, PATCH, PUT, DESTROY tests"
end

require 'spec_helper'

describe IdeasController do
  before do
    @idea = create(:idea)
  end

  describe "GET 'index'" do
    it "returns http success" do
      get 'index'
      response.should be_success
    end
  end

  describe "GET 'new'" do
    it "returns http success" do
      get 'new'
      response.should be_success
    end
  end

  describe "GET 'edit'" do
    it "returns http success" do
      get 'edit', { id: 1 }
      response.should be_success
    end
  end

  describe "GET 'show'" do
    it "returns http success" do
      get 'show', { id: @idea.id }
      response.should be_success
    end
  end

  pending "POST create"
  pending "PATCH update"
  pending "PUT update"
  pending "DELETE destroy"
  pending "POST vote"
  pending "PATCH vote"
  pending "DELETE vote"
end

Update IdeaController spec pending test messages
Update IdeaController spec pending test messages

Add messages for each individual test that can be added.
