require "spec_helper" describe ApplicationController do controller do def index render nothing: true end def show raise "heck" end end it "includes all well statuses with every response" do get :index assigns(:license_statuses).should =~ LicenseStatus::ALL end it "includes all well types with every response" do get :index assigns(:well_types).should =~ WellType::ALL end it "handles errors gracefully" do get :show, id: 1 response.status.should == 500 end end