diff options
| author | Robert | 2017-12-11 10:00:46 +0100 |
|---|---|---|
| committer | Robert | 2017-12-11 10:00:46 +0100 |
| commit | 406d99df9824d7d7dda72b3cc47504840324251c (patch) | |
| tree | eb83d8bdf9d1e3c30e2e41239233a2051b399fd0 /spec | |
| parent | 3e0c0056b931cd3cfbb244a806d6e1ac100b7c43 (diff) | |
| parent | c9f2073abb231c67e87b5d0685c873c064420caa (diff) | |
| download | chouette-core-406d99df9824d7d7dda72b3cc47504840324251c.tar.bz2 | |
Merge branch 'master' of github.com:af83/stif-boiv
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 |
