aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/calendars_spec.rb
diff options
context:
space:
mode:
authorRobert2017-06-20 17:03:56 +0200
committerRobert2017-06-20 17:03:56 +0200
commitf42ea52d0f7f6fd6cab7f9179f93e189dd90bdca (patch)
treeb90c3dad73117122ae322ea54c235d1ffc2cb465 /spec/features/calendars_spec.rb
parentaceeb812800c9429631f9c21d3f1b063ee634fef (diff)
downloadchouette-core-f42ea52d0f7f6fd6cab7f9179f93e189dd90bdca.tar.bz2
Refs: #3595@3h; calendars/new Date validation
Diffstat (limited to 'spec/features/calendars_spec.rb')
-rw-r--r--spec/features/calendars_spec.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/spec/features/calendars_spec.rb b/spec/features/calendars_spec.rb
index e15624295..8c38e7820 100644
--- a/spec/features/calendars_spec.rb
+++ b/spec/features/calendars_spec.rb
@@ -1,7 +1,4 @@
-# -*- coding: utf-8 -*-
-require 'spec_helper'
-
-describe 'Calendars', type: :feature do
+RSpec.describe 'Calendars', type: :feature do
login_user
let!(:calendars) { Array.new(2) { create :calendar, organisation_id: 1 } }
@@ -69,4 +66,17 @@ describe 'Calendars', type: :feature do
expect(page).to have_content(calendars.first.name)
end
end
+
+ describe 'create', :wip do
+ before do
+ visit new_calendar_path
+
+ end
+ it 'with correct date' do
+ require 'pry'
+ binding.pry
+
+ end
+
+ end
end