diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-09 14:10:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-09 14:10:49 +0000 |
commit | ab066317e62b3a6082fc82ba57915ed02f0f6699 (patch) | |
tree | 7889bbe8150f7aa9ed03a8970e9c999e33e378f1 /test/unit/helpers/queries_helper_test.rb | |
parent | fb9a87f53ecd1bce3afef08cea0237e227cd400d (diff) | |
download | redmine-ab066317e62b3a6082fc82ba57915ed02f0f6699.tar.gz redmine-ab066317e62b3a6082fc82ba57915ed02f0f6699.zip |
Adds STI to Query model. Issue queries are now IssueQuery instances.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10964 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers/queries_helper_test.rb')
-rw-r--r-- | test/unit/helpers/queries_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/helpers/queries_helper_test.rb b/test/unit/helpers/queries_helper_test.rb index ce23648d2..bc06499a9 100644 --- a/test/unit/helpers/queries_helper_test.rb +++ b/test/unit/helpers/queries_helper_test.rb @@ -31,7 +31,7 @@ class QueriesHelperTest < ActionView::TestCase def test_order User.current = User.find_by_login('admin') - query = Query.new(:project => nil, :name => '_') + query = IssueQuery.new(:project => nil, :name => '_') assert_equal 30, query.available_filters.size fo = filters_options(query) assert_equal 31, fo.size @@ -52,7 +52,7 @@ class QueriesHelperTest < ActionView::TestCase ) assert field.save User.current = User.find_by_login('admin') - query = Query.new(:project => nil, :name => '_') + query = IssueQuery.new(:project => nil, :name => '_') assert_equal 32, query.available_filters.size fo = filters_options(query) assert_equal 33, fo.size |