aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/timebands_spec.rb
diff options
context:
space:
mode:
authorZog2018-05-29 10:18:16 +0200
committerJohan Van Ryseghem2018-05-30 16:29:33 +0200
commit3e8d95ac8168205ac9526fb8663459d691d09c30 (patch)
treefd2bc220473f4defe30a35668d6b9eead76f00fa /spec/features/timebands_spec.rb
parent971b267958c3bf78abea332e0af4c46a23679b61 (diff)
downloadchouette-core-3e8d95ac8168205ac9526fb8663459d691d09c30.tar.bz2
Refs #6433; Fix specs
Diffstat (limited to 'spec/features/timebands_spec.rb')
-rw-r--r--spec/features/timebands_spec.rb62
1 files changed, 0 insertions, 62 deletions
diff --git a/spec/features/timebands_spec.rb b/spec/features/timebands_spec.rb
deleted file mode 100644
index fcd14641a..000000000
--- a/spec/features/timebands_spec.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-# -*- coding: utf-8 -*-
-require 'spec_helper'
-
-describe "Timebands", :type => :feature do
- login_user
-
- let!(:timebands) { Array.new(2) { create(:timeband) } }
- subject { timebands.first }
-
- describe "list" do
- it "display timebands" do
- visit referential_timebands_path(referential)
- expect(page).to have_content(timebands.first.name)
- expect(page).to have_content(timebands.last.name)
- end
-
- end
-
- describe "show" do
- it "display timeband" do
- visit referential_timebands_path(referential)
- click_link "#{timebands.first.name}"
- expect(page).to have_content(timebands.first.name)
- end
-
- end
-
- describe "new" do
- it "creates timeband and return to show" do
- visit referential_timebands_path(referential)
- click_link "Ajouter un créneau horaire"
- fill_in "Titre", :with => "Timeband 1"
-
- select '10', from: 'timeband_start_time_4i'
- select '00', from: 'timeband_start_time_5i'
- select '11', from: 'timeband_end_time_4i'
- select '00', from: 'timeband_end_time_5i'
-
- click_button("Créer créneau horaire")
- expect(page).to have_content("Timeband 1")
- end
- end
-
- describe "edit and return to show" do
- it "edit timeband" do
- visit referential_timeband_path(referential, subject)
- click_link "Editer ce créneau horaire"
- fill_in "Titre", :with => "Timeband Modified"
- click_button("Editer créneau horaire")
- expect(page).to have_content("Timeband Modified")
- end
- end
-
- describe "delete and return to list" do
- it "delete timeband" do
- visit referential_timebands_path(referential)
- page.all('.remove')[0].click
- expect(page).to_not have_content("Timeband Modified")
- end
- end
-
-end