diff options
| author | cedricnjanga | 2017-12-08 16:58:34 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-12-08 17:18:54 +0100 |
| commit | c8b266dd40bd75e45ded8ccc673a45a6796a0f84 (patch) | |
| tree | ec58fcd1b542cbc74e5492b709037e39a08dd22b /spec | |
| parent | 0bb71d8146126f4f2c53ca0c7145f0e7d5eaeda5 (diff) | |
| download | chouette-core-c8b266dd40bd75e45ded8ccc673a45a6796a0f84.tar.bz2 | |
Refs 4812 UX changes to show empty compliance control blocks so the user can see them all4812-display_empty_compliance_control_blocks
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/compliance_control_sets_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/features/compliance_control_sets_spec.rb b/spec/features/compliance_control_sets_spec.rb index bcb989cdc..64125a577 100644 --- a/spec/features/compliance_control_sets_spec.rb +++ b/spec/features/compliance_control_sets_spec.rb @@ -1,4 +1,5 @@ RSpec.describe "ComplianceControlSets", type: :feature do + include TransportModeHelper login_user @@ -12,7 +13,7 @@ RSpec.describe "ComplianceControlSets", type: :feature do } before do - blox.first.update transport_mode: 'bus', transport_submode: 'bus' + blox.first.update transport_mode: 'bus', transport_submode: 'nightBus' blox.second.update transport_mode: 'train', transport_submode: 'train' make_control @@ -75,6 +76,13 @@ RSpec.describe "ComplianceControlSets", type: :feature do end end + context "wthout filter on compliance control block applied" do + it "we can see empty blocks" do + blox.first.compliance_controls.destroy_all + expect(page).to have_content (transport_mode_text(blox.first) ) + end + end + end def make_control ccblock=nil, times: 1, severity: :warning |
