summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-25 21:18:00 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-26 16:32:24 -0400
commit60ac6a28a2f198427c2d1ad68421aee484e14028 (patch)
treec6554dbfc66eb278c814b14a717ded2f80442724 /spec
parentcada511f8b88671bb8a99600ed314c3beb5a36f4 (diff)
downloadgitlab-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.rb5
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