diff options
author | Robert Speicher <robert@gitlab.com> | 2017-02-16 19:03:17 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-02-16 19:03:17 +0000 |
commit | 82d14ee543cdb26580dfec9d4c7121245687998d (patch) | |
tree | 40e665b3caa1ca6e26138bcc716d14c0b6a21a96 /spec/helpers | |
parent | a7ddd4f07563ca6aac1f7802613294a457d972a4 (diff) | |
parent | 0dfccd995aa9bf560e59299f3a4f1705d6981115 (diff) | |
download | gitlab-ce-82d14ee543cdb26580dfec9d4c7121245687998d.tar.gz |
Merge branch 'active_when' into 'master'
Add active_when helper
Closes #24036
See merge request !9166
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 8b201f348f1..fd40fe99941 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -265,4 +265,9 @@ describe ApplicationHelper do expect(helper.render_markup('foo.adoc', content)).to eq('NOEL') end end + + describe '#active_when' do + it { expect(helper.active_when(true)).to eq('active') } + it { expect(helper.active_when(false)).to eq(nil) } + end end |