remove views specs and non-applicable routing specs
This commit is contained in:
parent
25117cf0e6
commit
d913f50cf9
25 changed files with 3 additions and 317 deletions
|
@ -3,22 +3,10 @@ require "rails_helper"
|
|||
RSpec.describe MappingsController, :type => :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/mappings").to route_to("mappings#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/mappings/new").to route_to("mappings#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/mappings/1").to route_to("mappings#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/mappings/1/edit").to route_to("mappings#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/mappings").to route_to("mappings#create")
|
||||
end
|
||||
|
|
|
@ -7,18 +7,10 @@ RSpec.describe MapsController, :type => :routing do
|
|||
expect(:get => "/maps").to route_to("maps#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/maps/new").to route_to("maps#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/maps/1").to route_to("maps#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/maps/1/edit").to route_to("maps#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/maps").to route_to("maps#create")
|
||||
end
|
||||
|
|
|
@ -11,10 +11,6 @@ RSpec.describe MetacodesController, :type => :routing do
|
|||
expect(:get => "/metacodes/new").to route_to("metacodes#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/metacodes/1").to route_to("metacodes#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/metacodes/1/edit").to route_to("metacodes#edit", :id => "1")
|
||||
end
|
||||
|
@ -27,9 +23,8 @@ RSpec.describe MetacodesController, :type => :routing do
|
|||
expect(:put => "/metacodes/1").to route_to("metacodes#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
expect(:delete => "/metacodes/1").to route_to("metacodes#destroy", :id => "1")
|
||||
end
|
||||
|
||||
#it "routes to #destroy" do
|
||||
# expect(:delete => "/metacodes/1").to route_to("metacodes#destroy", :id => "1")
|
||||
#end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,22 +3,10 @@ require "rails_helper"
|
|||
RSpec.describe SynapsesController, :type => :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/synapses").to route_to("synapses#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/synapses/new").to route_to("synapses#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/synapses/1").to route_to("synapses#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/synapses/1/edit").to route_to("synapses#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/synapses").to route_to("synapses#create")
|
||||
end
|
||||
|
|
|
@ -3,22 +3,10 @@ require "rails_helper"
|
|||
RSpec.describe TopicsController, :type => :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/topics").to route_to("topics#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/topics/new").to route_to("topics#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/topics/1").to route_to("topics#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/topics/1/edit").to route_to("topics#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/topics").to route_to("topics#create")
|
||||
end
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "mappings/edit", :type => :view do
|
||||
before(:each) do
|
||||
@mapping = assign(:mapping, Mapping.create!())
|
||||
end
|
||||
|
||||
it "renders the edit mapping form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", mapping_path(@mapping), "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "mappings/index", :type => :view do
|
||||
before(:each) do
|
||||
assign(:mappings, [
|
||||
Mapping.create!(),
|
||||
Mapping.create!()
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of mappings" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "mappings/new", :type => :view do
|
||||
before(:each) do
|
||||
assign(:mapping, Mapping.new())
|
||||
end
|
||||
|
||||
it "renders new mapping form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", mappings_path, "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "mappings/show", :type => :view do
|
||||
before(:each) do
|
||||
@mapping = assign(:mapping, Mapping.create!())
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "maps/edit", :type => :view do
|
||||
before(:each) do
|
||||
@map = assign(:map, Map.create!())
|
||||
end
|
||||
|
||||
it "renders the edit map form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", map_path(@map), "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "maps/index", :type => :view do
|
||||
before(:each) do
|
||||
assign(:maps, [
|
||||
Map.create!(),
|
||||
Map.create!()
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of maps" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "maps/new", :type => :view do
|
||||
before(:each) do
|
||||
assign(:map, Map.new())
|
||||
end
|
||||
|
||||
it "renders new map form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", maps_path, "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "maps/show", :type => :view do
|
||||
before(:each) do
|
||||
@map = assign(:map, Map.create!())
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "metacodes/edit", :type => :view do
|
||||
before(:each) do
|
||||
@metacode = assign(:metacode, Metacode.create!())
|
||||
end
|
||||
|
||||
it "renders the edit metacode form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", metacode_path(@metacode), "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "metacodes/index", :type => :view do
|
||||
before(:each) do
|
||||
assign(:metacodes, [
|
||||
Metacode.create!(),
|
||||
Metacode.create!()
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of metacodes" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "metacodes/new", :type => :view do
|
||||
before(:each) do
|
||||
assign(:metacode, Metacode.new())
|
||||
end
|
||||
|
||||
it "renders new metacode form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", metacodes_path, "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "metacodes/show", :type => :view do
|
||||
before(:each) do
|
||||
@metacode = assign(:metacode, Metacode.create!())
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "synapses/edit", :type => :view do
|
||||
before(:each) do
|
||||
@synapse = assign(:synapse, Synapse.create!())
|
||||
end
|
||||
|
||||
it "renders the edit synapse form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", synapse_path(@synapse), "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "synapses/index", :type => :view do
|
||||
before(:each) do
|
||||
assign(:synapses, [
|
||||
Synapse.create!(),
|
||||
Synapse.create!()
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of synapses" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "synapses/new", :type => :view do
|
||||
before(:each) do
|
||||
assign(:synapse, Synapse.new())
|
||||
end
|
||||
|
||||
it "renders new synapse form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", synapses_path, "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "synapses/show", :type => :view do
|
||||
before(:each) do
|
||||
@synapse = assign(:synapse, Synapse.create!())
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "topics/edit", :type => :view do
|
||||
before(:each) do
|
||||
@topic = assign(:topic, Topic.create!())
|
||||
end
|
||||
|
||||
it "renders the edit topic form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", topic_path(@topic), "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "topics/index", :type => :view do
|
||||
before(:each) do
|
||||
assign(:topics, [
|
||||
Topic.create!(),
|
||||
Topic.create!()
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of topics" do
|
||||
render
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "topics/new", :type => :view do
|
||||
before(:each) do
|
||||
assign(:topic, Topic.new())
|
||||
end
|
||||
|
||||
it "renders new topic form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", topics_path, "post" do
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "topics/show", :type => :view do
|
||||
before(:each) do
|
||||
@topic = assign(:topic, Topic.create!())
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue