remove unneeded NEW tests, fix test.rb environment

This commit is contained in:
Devin Howard 2015-12-15 22:33:48 +08:00
parent 229b7d2cc5
commit 235d4f6c24
5 changed files with 1 additions and 29 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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