diff options
| author | Luc Donnet | 2017-12-11 09:20:55 +0100 | 
|---|---|---|
| committer | GitHub | 2017-12-11 09:20:55 +0100 | 
| commit | c9f2073abb231c67e87b5d0685c873c064420caa (patch) | |
| tree | e1b482d5beb76173422248baa0810556fc5a04d3 /spec/features | |
| parent | 06fa06f1da0ebc4e4971c54e7795080198cc98e2 (diff) | |
| parent | c8b266dd40bd75e45ded8ccc673a45a6796a0f84 (diff) | |
| download | chouette-core-c9f2073abb231c67e87b5d0685c873c064420caa.tar.bz2 | |
Merge pull request #144 from af83/4812-display_empty_compliance_control_blocks
Refs 4812 UX changes to show empty compliance control blocks so the u…
Diffstat (limited to 'spec/features')
| -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 | 
