From 4f6de445141fc5542f61a1830c29ad61ecbeb49b Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 21 Feb 2014 21:03:56 -0700 Subject: load well statuses and well types in application controller. --- spec/controllers/application_controller_spec.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 spec/controllers/application_controller_spec.rb (limited to 'spec/controllers/application_controller_spec.rb') diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb new file mode 100644 index 0000000..a26c465 --- /dev/null +++ b/spec/controllers/application_controller_spec.rb @@ -0,0 +1,19 @@ +require "spec_helper" + +describe ApplicationController do + controller do + def index + render nothing: true + 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 +end -- cgit v1.2.3