Mercurial > hg > soundsoftware-site
comparison test/functional/search_controller_test.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
188 assert_not_nil results | 188 assert_not_nil results |
189 assert_equal 2, results.size | 189 assert_equal 2, results.size |
190 end | 190 end |
191 | 191 |
192 def test_search_content | 192 def test_search_content |
193 Issue.update_all("description = 'This is a searchkeywordinthecontent'", "id=1") | 193 Issue.where(:id => 1).update_all("description = 'This is a searchkeywordinthecontent'") |
194 | |
195 get :index, :id => 1, :q => 'searchkeywordinthecontent', :titles_only => '' | 194 get :index, :id => 1, :q => 'searchkeywordinthecontent', :titles_only => '' |
196 assert_equal false, assigns(:titles_only) | 195 assert_equal false, assigns(:titles_only) |
197 results = assigns(:results) | 196 results = assigns(:results) |
198 assert_not_nil results | 197 assert_not_nil results |
199 assert_equal 1, results.size | 198 assert_equal 1, results.size |