summaryrefslogtreecommitdiffstats
path: root/test/unit/query_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-10-24 02:18:45 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-10-24 02:18:45 +0000
commit6f92548b38ab1f651b20b4b0696f0aee28eb430b (patch)
tree6944e071a19bc2dda0e0d57ccb4a17d1cbc4b211 /test/unit/query_test.rb
parent374f4dd52e1370db0e60e2bc035513c7cd5bb8fa (diff)
downloadredmine-6f92548b38ab1f651b20b4b0696f0aee28eb430b.tar.gz
redmine-6f92548b38ab1f651b20b4b0696f0aee28eb430b.zip
remove unneeded "references" of joins
"references" is needed for includes, but not needed for joins. git-svn-id: http://svn.redmine.org/redmine/trunk@13501 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r--test/unit/query_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 692fbdbbe..b46da1405 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -103,7 +103,7 @@ class QueryTest < ActiveSupport::TestCase
def find_issues_with_query(query)
Issue.joins(:status, :tracker, :project, :priority).where(
query.statement
- ).references([:assigned_to, :status, :tracker, :project, :priority]).to_a
+ ).to_a
end
def assert_find_issues_with_query_is_successful(query)