Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-26 05:18:00 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-27 00:32:24 +0400
commit60ac6a28a2f198427c2d1ad68421aee484e14028 (patch)
treec6554dbfc66eb278c814b14a717ded2f80442724 /spec
parentcada511f8b88671bb8a99600ed314c3beb5a36f4 (diff)
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