diff --git a/spec/routing/mappings_routing_spec.rb b/spec/routing/mappings_routing_spec.rb index 676124ba..d8266398 100644 --- a/spec/routing/mappings_routing_spec.rb +++ b/spec/routing/mappings_routing_spec.rb @@ -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 diff --git a/spec/routing/maps_routing_spec.rb b/spec/routing/maps_routing_spec.rb index ac36d46a..1e77be48 100644 --- a/spec/routing/maps_routing_spec.rb +++ b/spec/routing/maps_routing_spec.rb @@ -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 diff --git a/spec/routing/metacodes_routing_spec.rb b/spec/routing/metacodes_routing_spec.rb index a16cd989..2bc39be7 100644 --- a/spec/routing/metacodes_routing_spec.rb +++ b/spec/routing/metacodes_routing_spec.rb @@ -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 diff --git a/spec/routing/synapses_routing_spec.rb b/spec/routing/synapses_routing_spec.rb index 98a55995..e0639bd0 100644 --- a/spec/routing/synapses_routing_spec.rb +++ b/spec/routing/synapses_routing_spec.rb @@ -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 diff --git a/spec/routing/topics_routing_spec.rb b/spec/routing/topics_routing_spec.rb index 3aca22cb..515e15bf 100644 --- a/spec/routing/topics_routing_spec.rb +++ b/spec/routing/topics_routing_spec.rb @@ -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 diff --git a/spec/views/mappings/edit.html.erb_spec.rb b/spec/views/mappings/edit.html.erb_spec.rb deleted file mode 100644 index 8958be16..00000000 --- a/spec/views/mappings/edit.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/mappings/index.html.erb_spec.rb b/spec/views/mappings/index.html.erb_spec.rb deleted file mode 100644 index 8f3b48b8..00000000 --- a/spec/views/mappings/index.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/mappings/new.html.erb_spec.rb b/spec/views/mappings/new.html.erb_spec.rb deleted file mode 100644 index d050c7c6..00000000 --- a/spec/views/mappings/new.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/mappings/show.html.erb_spec.rb b/spec/views/mappings/show.html.erb_spec.rb deleted file mode 100644 index ca2ccffe..00000000 --- a/spec/views/mappings/show.html.erb_spec.rb +++ /dev/null @@ -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

" do - render - end -end diff --git a/spec/views/maps/edit.html.erb_spec.rb b/spec/views/maps/edit.html.erb_spec.rb deleted file mode 100644 index ac45567e..00000000 --- a/spec/views/maps/edit.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/maps/index.html.erb_spec.rb b/spec/views/maps/index.html.erb_spec.rb deleted file mode 100644 index 98cf6323..00000000 --- a/spec/views/maps/index.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/maps/new.html.erb_spec.rb b/spec/views/maps/new.html.erb_spec.rb deleted file mode 100644 index 2a314a9e..00000000 --- a/spec/views/maps/new.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/maps/show.html.erb_spec.rb b/spec/views/maps/show.html.erb_spec.rb deleted file mode 100644 index 6a854ca2..00000000 --- a/spec/views/maps/show.html.erb_spec.rb +++ /dev/null @@ -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

" do - render - end -end diff --git a/spec/views/metacodes/edit.html.erb_spec.rb b/spec/views/metacodes/edit.html.erb_spec.rb deleted file mode 100644 index 0ace65ae..00000000 --- a/spec/views/metacodes/edit.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/metacodes/index.html.erb_spec.rb b/spec/views/metacodes/index.html.erb_spec.rb deleted file mode 100644 index 1c41e3ce..00000000 --- a/spec/views/metacodes/index.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/metacodes/new.html.erb_spec.rb b/spec/views/metacodes/new.html.erb_spec.rb deleted file mode 100644 index aeee099c..00000000 --- a/spec/views/metacodes/new.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/metacodes/show.html.erb_spec.rb b/spec/views/metacodes/show.html.erb_spec.rb deleted file mode 100644 index 78d5da9e..00000000 --- a/spec/views/metacodes/show.html.erb_spec.rb +++ /dev/null @@ -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

" do - render - end -end diff --git a/spec/views/synapses/edit.html.erb_spec.rb b/spec/views/synapses/edit.html.erb_spec.rb deleted file mode 100644 index 72157746..00000000 --- a/spec/views/synapses/edit.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/synapses/index.html.erb_spec.rb b/spec/views/synapses/index.html.erb_spec.rb deleted file mode 100644 index 61c572f7..00000000 --- a/spec/views/synapses/index.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/synapses/new.html.erb_spec.rb b/spec/views/synapses/new.html.erb_spec.rb deleted file mode 100644 index 48ec6313..00000000 --- a/spec/views/synapses/new.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/synapses/show.html.erb_spec.rb b/spec/views/synapses/show.html.erb_spec.rb deleted file mode 100644 index 53cca260..00000000 --- a/spec/views/synapses/show.html.erb_spec.rb +++ /dev/null @@ -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

" do - render - end -end diff --git a/spec/views/topics/edit.html.erb_spec.rb b/spec/views/topics/edit.html.erb_spec.rb deleted file mode 100644 index 81bd9c70..00000000 --- a/spec/views/topics/edit.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/topics/index.html.erb_spec.rb b/spec/views/topics/index.html.erb_spec.rb deleted file mode 100644 index fea0c14d..00000000 --- a/spec/views/topics/index.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/topics/new.html.erb_spec.rb b/spec/views/topics/new.html.erb_spec.rb deleted file mode 100644 index cd37ee22..00000000 --- a/spec/views/topics/new.html.erb_spec.rb +++ /dev/null @@ -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 diff --git a/spec/views/topics/show.html.erb_spec.rb b/spec/views/topics/show.html.erb_spec.rb deleted file mode 100644 index 9bad98ee..00000000 --- a/spec/views/topics/show.html.erb_spec.rb +++ /dev/null @@ -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

" do - render - end -end