require 'rails_helper'

describe StaticPagesController do
  describe "home" do
    it "should respond to root path" do
      expect({:get => "/"}).to route_to({:controller => "static_pages", :action => "home"})
      expect(home_path).to eq "/"
    end

    it "assigns trending petitions" do
      trending_petitions = [double]
      allow(Petition).to receive_messages(:last_hour_trending => trending_petitions)
      get :home
      expect(assigns(:trending_petitions)).to eq trending_petitions
    end
  end

  describe "terms_and_conditions" do
    it "should respond to /terms-and-conditions" do
      expect({:get => "/terms-and-conditions"}).to route_to({:controller => "static_pages", :action => "terms_and_conditions"})
      expect(terms_and_conditions_path).to eq "/terms-and-conditions"
    end
  end
  describe "privacy_policy" do
    it "should respond to /privacy-policy" do
      expect({:get => "/privacy-policy"}).to route_to({:controller => "static_pages", :action => "privacy_policy"})
      expect(privacy_policy_path).to eq "/privacy-policy"
    end
  end
  describe "cookies" do
    it "should respond to /cookies" do
      expect({:get => "/cookies"}).to route_to({:controller => "static_pages", :action => "cookies"})
      expect(cookies_path).to eq "/cookies"
    end
  end
end

require 'rails_helper'

describe StaticPagesController do
  describe "home" do
    it "should respond to root path" do
      expect({:get => "/"}).to route_to({:controller => "static_pages", :action => "home"})
      expect(home_path).to eq "/"
    end

    it "assigns trending petitions" do
      trending_petitions = [double]
      allow(Petition).to receive_messages(:last_hour_trending => trending_petitions)
      get :home
      expect(assigns(:trending_petitions)).to eq trending_petitions
    end
  end

  describe "help" do
    it "should respond to /help" do
      expect({:get => "/help"}).to route_to({:controller => "static_pages", :action => "help"})
      expect(help_path).to eq "/help"
    end
  end
end

Remove tests referring to static pages being removed
Remove tests referring to static pages being removed
