diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-25 21:18:00 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 16:32:24 -0400 |
commit | 60ac6a28a2f198427c2d1ad68421aee484e14028 (patch) | |
tree | c6554dbfc66eb278c814b14a717ded2f80442724 /spec | |
parent | cada511f8b88671bb8a99600ed314c3beb5a36f4 (diff) | |
download | gitlab-ce-60ac6a28a2f198427c2d1ad68421aee484e14028.tar.gz |
Allow current_controller? helper to take an Array of options
Diffstat (limited to 'spec')
-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 10250c93883..fb711dd8d71 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -13,6 +13,11 @@ describe ApplicationHelper do it "returns false when controller does not match argument" do current_controller?(:bar).should_not be_true end + + it "should take any number of arguments" do + current_controller?(:baz, :bar).should_not be_true + current_controller?(:baz, :bar, :foo).should be_true + end end describe "gravatar_icon" do |