aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMichel Etienne2012-04-30 14:30:54 +0200
committerMichel Etienne2012-04-30 14:30:54 +0200
commit3ceaf79784bc78563a7c58b5003f709cc9b3af1e (patch)
tree9bb8ccb61d8bb6f24410069e5a71cc474841698f /spec
parentba2e73b5176408f303e97fa3cadee7467506263c (diff)
downloadchouette-core-3ceaf79784bc78563a7c58b5003f709cc9b3af1e.tar.bz2
new and edit connection links
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/connection_links_spec.rb32
1 files changed, 15 insertions, 17 deletions
diff --git a/spec/requests/connection_links_spec.rb b/spec/requests/connection_links_spec.rb
index c40e81970..e137a330b 100644
--- a/spec/requests/connection_links_spec.rb
+++ b/spec/requests/connection_links_spec.rb
@@ -35,26 +35,24 @@ describe "ConnectionLinks" do
end
describe "new" do
- pending ": TODO see how to affect departure and arrival"
-# 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:Timetable:1"
-# click_button("Créer Correspondance")
-# page.should have_content("ConnectionLink 1")
-# end
+ 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"
+ click_button("Créer Correspondance")
+ page.should have_content("ConnectionLink 1")
+ end
end
describe "edit and return to show" do
- pending ": TODO see how to affect departure and arrival"
-# it "edit connection_link" do
-# visit referential_connection_link_path(referential, subject)
-# click_link "Modifier cette correspondance"
-# fill_in "Nom", :with => "ConnectionLink Modified"
-# click_button("Modifier Correspondance")
-# page.should have_content("ConnectionLink Modified")
-# end
+ it "edit connection_link" do
+ visit referential_connection_link_path(referential, subject)
+ click_link "Modifier cette correspondance"
+ fill_in "Nom", :with => "ConnectionLink Modified"
+ click_button("Modifier Correspondance")
+ page.should have_content("ConnectionLink Modified")
+ end
end
end