diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/controllers/vehicle_journey_frequencies_controller_spec.rb | 5 | ||||
| -rw-r--r-- | spec/features/access_points_spec.rb | 64 | ||||
| -rw-r--r-- | spec/features/connection_links_spec.rb | 46 | ||||
| -rw-r--r-- | spec/models/stop_area_copy_spec.rb | 38 | ||||
| -rw-r--r-- | spec/views/import_tasks/index.html.erb_spec.rb | 5 | ||||
| -rw-r--r-- | spec/views/import_tasks/new.html.erb_spec.rb | 15 |
6 files changed, 0 insertions, 173 deletions
diff --git a/spec/controllers/vehicle_journey_frequencies_controller_spec.rb b/spec/controllers/vehicle_journey_frequencies_controller_spec.rb deleted file mode 100644 index 61636e334..000000000 --- a/spec/controllers/vehicle_journey_frequencies_controller_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -RSpec.describe VehicleJourneyFrequenciesController, :type => :controller do - -end diff --git a/spec/features/access_points_spec.rb b/spec/features/access_points_spec.rb deleted file mode 100644 index 890906de7..000000000 --- a/spec/features/access_points_spec.rb +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -require 'spec_helper' - -describe "Access points", :type => :feature do - login_user - - let!(:stop_area) { create(:stop_area, stop_area_referential: referential.stop_area_referential) } - let!(:access_points) { Array.new(2) { create(:access_point, :stop_area => stop_area) } } - subject { access_points.first } - - describe "list" do - - it "displays a list of access points" do - visit referential_stop_area_access_points_path(referential, stop_area) - #save_and_open_page - access_points.each do |ap| - expect(page).to have_content(ap.name) - end - end - - end - - describe "show" do - - # it "displays an access point" do - # access_points.each do |ap| - # visit referential_stop_area_path(referential, stop_area) - # click_link ap.name - # expect(page).to have_content(ap.name) - # end - # end - - # it "displays a map" do - # access_points.each do |ap| - # visit referential_stop_area_path(referential, stop_area) - # click_link ap.name - # expect(page).to have_selector("#map.access_point") - # end - # end - - end - - # Fixme #1780 - # describe "new" do - # it "creates an access point" do - # visit referential_stop_area_path(referential, stop_area) - # click_link I18n.t("access_points.actions.new") - # fill_in "access_point[name]", :with => "My Access Point Name" - # click_button(I18n.t('formtastic.create',model: I18n.t('activerecord.models.access_point.one'))) - # expect(page).to have_content("My Access Point Name") - # end - # end - - # describe "edit" do - # it "edits an acess point" do - # visit referential_stop_area_access_point_path(referential, stop_area, subject) - # click_link I18n.t("access_points.actions.edit") - # fill_in "access_point[name]", :with => "My New Access Point Name" - # click_button(I18n.t('formtastic.update',model: I18n.t('activerecord.models.access_point.one'))) - # expect(page).to have_content("My New Access Point Name") - # end - # end - -end diff --git a/spec/features/connection_links_spec.rb b/spec/features/connection_links_spec.rb deleted file mode 100644 index 7e95aeb13..000000000 --- a/spec/features/connection_links_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 -RSpec.describe "ConnectionLinks", type: :feature do - login_user - - let!(:connection_links) { Array.new(2) { create(:connection_link) } } - subject { connection_links.first } - - describe "list" do - it "display connection_links" do - visit referential_connection_links_path(referential) - expect(page).to have_content(connection_links.first.name) - expect(page).to have_content(connection_links.last.name) - end - - end - - describe "show" do - it "display connection_link" do - visit referential_connection_links_path(referential) - click_link "#{connection_links.first.name}" - expect(page).to have_content(connection_links.first.name) - end - end - - describe "new" do - it "creates connection_link and return to show" do - visit referential_connection_links_path(referential) - click_link "Ajouter une correspondance" - fill_in "Nom", :with => "ConnectionLink 1" - fill_in "Identifiant Neptune", :with => "test:ConnectionLink:1:LOC" - click_button("Créer correspondance") - expect(page).to have_content("ConnectionLink 1") - end - end - - describe "edit and return to show" do - it "edit connection_link" do - visit referential_connection_link_path(referential, subject) - click_link "Editer cette correspondance" - fill_in "Nom", :with => "ConnectionLink Modified" - click_button("Editer correspondance") - expect(page).to have_content("ConnectionLink Modified") - end - end - -end diff --git a/spec/models/stop_area_copy_spec.rb b/spec/models/stop_area_copy_spec.rb deleted file mode 100644 index a00271077..000000000 --- a/spec/models/stop_area_copy_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -require 'spec_helper' - -describe StopAreaCopy, :type => :model do - - subject { StopAreaCopy.new(:source_id => 1, :hierarchy => "child", :area_type => "Quay") } - - describe ".save" do - # Fixme #1627 - # it "should create a child for source" do - # source = create(:stop_area, :area_type => "CommercialStopPoint", :name => "test1", - # :registration_number => "123456", :city_name => "dummy", :zip_code => "12345") - # source.save - # subject.source_id = source.id - # subject.hierarchy = "child" - # subject.area_type = "Quay" - # subject.save - - # source.reload - # expect(source.children.length).to eq(1) - # expect(source.children[0].name).to eq("test1") - # end - - # it "should create a parent for source" do - # source = create(:stop_area, :area_type => "CommercialStopPoint", :name => "test2", - # :registration_number => "123456", :city_name => "dummy", :zip_code => "12345") - # source.save - # subject.source_id = source.id - # subject.hierarchy = "parent" - # subject.area_type = "StopPlace" - # subject.save - # source.reload - # expect(source.parent).not_to be_nil - # expect(source.parent.name).to eq('test2') - # end - end - -end diff --git a/spec/views/import_tasks/index.html.erb_spec.rb b/spec/views/import_tasks/index.html.erb_spec.rb deleted file mode 100644 index db70e046c..000000000 --- a/spec/views/import_tasks/index.html.erb_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe "imports/index.html.erb", :type => :view do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/views/import_tasks/new.html.erb_spec.rb b/spec/views/import_tasks/new.html.erb_spec.rb deleted file mode 100644 index 7726bddbc..000000000 --- a/spec/views/import_tasks/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -# require 'spec_helper' - -# describe "import_tasks/new.html.erb", :type => :view do - -# assign_referential -# let!(:import_task) { assign(:import_task, ImportTask.new) } - -# let!(:available_imports) { assign(:available_imports, []) } - -# it "should display a radio button to choose import type" do -# render -# expect(rendered).to have_selector("input", :type => "select", :name => "import_task[format]") -# end - -# end |
