diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-09-02 18:57:22 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-09-07 22:02:21 +0300 |
commit | 32c53d6d1b71885acbcab7829e197744a357c9fc (patch) | |
tree | fd84cdc3b4ed340aba01282d047a71352640e016 /spec/helpers/nav_helper_spec.rb | |
parent | a510fe11026ddfd264b9cc4627541b6dac0c38c7 (diff) |
remove dead code - 'collapsed_nav' cookie no longer used since a1fbdbb6 (see MR !4579)
Diffstat (limited to 'spec/helpers/nav_helper_spec.rb')
-rw-r--r-- | spec/helpers/nav_helper_spec.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/helpers/nav_helper_spec.rb b/spec/helpers/nav_helper_spec.rb deleted file mode 100644 index e4d18d8bfc6..00000000000 --- a/spec/helpers/nav_helper_spec.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the NavHelper. For example: -# -# describe NavHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end -describe NavHelper do - describe '#nav_menu_collapsed?' do - it 'returns true when the nav is collapsed in the cookie' do - helper.request.cookies[:collapsed_nav] = 'true' - expect(helper.nav_menu_collapsed?).to eq true - end - - it 'returns false when the nav is not collapsed in the cookie' do - helper.request.cookies[:collapsed_nav] = 'false' - expect(helper.nav_menu_collapsed?).to eq false - end - end -end |