summaryrefslogtreecommitdiffstats
path: root/test/exemplars
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-14 16:24:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-14 16:24:21 +0000
commit2ee45e8cac909991ddf782a8d2947ae99473404a (patch)
tree48456af96778489fcc65f77c347140adf206d66a /test/exemplars
parentc4a218358f499b6252874b8260ffa475fd7be3d7 (diff)
downloadredmine-2ee45e8cac909991ddf782a8d2947ae99473404a.tar.gz
redmine-2ee45e8cac909991ddf782a8d2947ae99473404a.zip
Use Object#tap instead of #returning (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4406 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/exemplars')
-rw-r--r--test/exemplars/project_exemplar.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exemplars/project_exemplar.rb b/test/exemplars/project_exemplar.rb
index 955634caf..a28c33312 100644
--- a/test/exemplars/project_exemplar.rb
+++ b/test/exemplars/project_exemplar.rb
@@ -18,7 +18,7 @@ class Project < ActiveRecord::Base
end
def self.all_modules
- returning [] do |modules|
+ [].tap do |modules|
Redmine::AccessControl.available_project_modules.each do |name|
modules << EnabledModule.new(:name => name.to_s)
end