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
This commit is contained in:
Jean-Philippe Lang
2012-12-09 14:10:49 +00:00
parent fb9a87f53e
commit ab066317e6
16 changed files with 500 additions and 449 deletions
@@ -252,7 +252,7 @@ class IssuesControllerTransactionTest < ActionController::TestCase
end
def test_index_should_rescue_invalid_sql_query
Query.any_instance.stubs(:statement).returns("INVALID STATEMENT")
IssueQuery.any_instance.stubs(:statement).returns("INVALID STATEMENT")
get :index
assert_response 500