diff --git a/config/environments/test.rb b/config/environments/test.rb index 73003840..be83469c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -10,7 +10,7 @@ Metamaps::Application.configure do config.cache_classes = true # Configure static asset server for tests with Cache-Control for performance - config.serve_static_assets = true + config.serve_static_files = true config.static_cache_control = "public, max-age=3600" # Show full error reports and disable caching diff --git a/spec/controllers/mappings_controller_spec.rb b/spec/controllers/mappings_controller_spec.rb index ae270bbe..371d0418 100644 --- a/spec/controllers/mappings_controller_spec.rb +++ b/spec/controllers/mappings_controller_spec.rb @@ -52,13 +52,6 @@ RSpec.describe MappingsController, :type => :controller do end end - describe "GET #new" do - it "assigns a new mapping as @mapping" do - get :new, {}, valid_session - expect(assigns(:mapping)).to be_a_new(Mapping) - end - end - describe "GET #edit" do it "assigns the requested mapping as @mapping" do mapping = Mapping.create! valid_attributes diff --git a/spec/controllers/maps_controller_spec.rb b/spec/controllers/maps_controller_spec.rb index 9805b96e..9f66424e 100644 --- a/spec/controllers/maps_controller_spec.rb +++ b/spec/controllers/maps_controller_spec.rb @@ -52,13 +52,6 @@ RSpec.describe MapsController, :type => :controller do end end - describe "GET #new" do - it "assigns a new map as @map" do - get :new, {}, valid_session - expect(assigns(:map)).to be_a_new(Map) - end - end - describe "GET #edit" do it "assigns the requested map as @map" do map = Map.create! valid_attributes diff --git a/spec/controllers/synapses_controller_spec.rb b/spec/controllers/synapses_controller_spec.rb index c4fb35af..8f8d5187 100644 --- a/spec/controllers/synapses_controller_spec.rb +++ b/spec/controllers/synapses_controller_spec.rb @@ -52,13 +52,6 @@ RSpec.describe SynapsesController, :type => :controller do end end - describe "GET #new" do - it "assigns a new synapse as @synapse" do - get :new, {}, valid_session - expect(assigns(:synapse)).to be_a_new(Synapse) - end - end - describe "GET #edit" do it "assigns the requested synapse as @synapse" do synapse = Synapse.create! valid_attributes diff --git a/spec/controllers/topics_controller_spec.rb b/spec/controllers/topics_controller_spec.rb index d3e7b506..15c52e16 100644 --- a/spec/controllers/topics_controller_spec.rb +++ b/spec/controllers/topics_controller_spec.rb @@ -52,13 +52,6 @@ RSpec.describe TopicsController, :type => :controller do end end - describe "GET #new" do - it "assigns a new topic as @topic" do - get :new, {}, valid_session - expect(assigns(:topic)).to be_a_new(Topic) - end - end - describe "GET #edit" do it "assigns the requested topic as @topic" do topic = Topic.create! valid_attributes