diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-06-20 20:01:32 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-06-20 20:01:32 +0000 |
commit | 7376ef2ad73d71b8e60582d0dcbb2269be29da86 (patch) | |
tree | 81ac6a995efe5782c05f4f1e279c32643a665326 /test/functional/search_controller_test.rb | |
parent | c98f46d691542baf769bc74e25f808277cd5878b (diff) | |
download | redmine-7376ef2ad73d71b8e60582d0dcbb2269be29da86.tar.gz redmine-7376ef2ad73d71b8e60582d0dcbb2269be29da86.zip |
Typecast issue ids when searched for.
Older Postgres versions don't allow searching over the id field's max size.
Contributed by Holger Just
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3806 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/search_controller_test.rb')
-rw-r--r-- | test/functional/search_controller_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index b062468a6..58e3ca881 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -133,6 +133,12 @@ class SearchControllerTest < ActionController::TestCase assert_response :success assert_template 'index' end + + def test_large_integer + get :index, :q => '4615713488' + assert_response :success + assert_template 'index' + end def test_tokens_with_quotes get :index, :id => 1, :q => '"good bye" hello "bye bye"' |