aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorVlatka Pavisic2017-01-27 12:58:45 +0100
committerVlatka Pavisic2017-01-27 12:58:45 +0100
commitc6e66eae73984798ceea041c7478ba74c5599f3f (patch)
tree553ce19c55d03be454b8d0bd19b033f7fc0e1b63 /spec
parent4fdc30f46f8a296dcd15b827a99f8c7a09338d50 (diff)
downloadchouette-core-c6e66eae73984798ceea041c7478ba74c5599f3f.tar.bz2
Refs #2469 : Referential#ready
Diffstat (limited to 'spec')
-rw-r--r--spec/features/workbenches_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/workbenches_spec.rb b/spec/features/workbenches_spec.rb
new file mode 100644
index 000000000..1ff39e1be
--- /dev/null
+++ b/spec/features/workbenches_spec.rb
@@ -0,0 +1,17 @@
+require 'spec_helper'
+
+describe 'Workbenches', type: :feature do
+ login_user
+
+ let!(:workbench) { create :workbench }
+ let!(:ready_referential) { create(:referential, workbench: workbench, ready: true) }
+ let!(:unready_referential) { create(:referential, workbench: workbench) }
+
+ describe 'show' do
+ it 'shows ready referentials belonging to that workbench' do
+ visit workbench_path(workbench)
+ expect(page).to have_content(ready_referential.name)
+ expect(page).not_to have_content(unready_referential.name)
+ end
+ end
+end