diff options
| author | Luc Donnet | 2015-01-05 14:56:12 +0100 |
|---|---|---|
| committer | Luc Donnet | 2015-01-05 14:56:12 +0100 |
| commit | 3bc6d313bebdc1f03e4021aabbc774a0cd97d938 (patch) | |
| tree | ac5b8c6d8309012136606d9fd9b9a00290f486a8 /spec/requests/routes_spec.rb | |
| parent | e632a4634b1762f4c73d11f1e5b127de9832a1ff (diff) | |
| download | chouette-core-3bc6d313bebdc1f03e4021aabbc774a0cd97d938.tar.bz2 | |
Initialize rails 4 migration
Diffstat (limited to 'spec/requests/routes_spec.rb')
| -rw-r--r-- | spec/requests/routes_spec.rb | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/spec/requests/routes_spec.rb b/spec/requests/routes_spec.rb deleted file mode 100644 index 5e24b8492..000000000 --- a/spec/requests/routes_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -require 'spec_helper' - -describe "Routes" do - login_user - - let!(:line) { Factory(:line) } - let!(:route) { Factory(:route, :line => line) } - let!(:route2) { Factory(:route, :line => line) } - - describe "from lines page to a line page" do - it "display line's routes" do - pending - visit referential_lines_path(referential) - click_link "#{line.name}" - page.should have_content(route.name) - page.should have_content(route2.name) - end - end - describe "from line's page to route's page" do - it "display route properties" do - pending - visit referential_line_path(referential,line) - click_link "#{route.name}" - page.should have_content(route.name) - page.should have_content(route.number) - end - end - describe "from line's page, create a new route" do - it "return to line's page that display new route" do - pending - visit referential_line_path(referential,line) - click_link "Ajouter une séquence d'arrêts" - fill_in "Nom", :with => "A to B" - fill_in "Indice", :with => "AB" - click_button("Créer Séquence d'arrêts") - page.should have_content("A to B") - end - end - describe "from line's page, select a route and edit it" do - it "return to line's page with changed name" do - pending - visit referential_line_path(referential,line) - click_link "#{route.name}" - click_link "Modifier cette séquence d'arrêts" - fill_in "Nom", :with => "#{route.name}-changed" - click_button("Modifier Séquence d'arrêts") - page.should have_content("#{route.name}-changed") - end - end - describe "from line's page, select a route and delete it" do - it "return to line's page without route name" do - pending - visit referential_line_path(referential,line) - click_link "#{route.name}" - #click_link "Supprimer cette séquence d'arrêts" - #page.should_not have_content(route.name) - end - end -end |
