move tests to new directory

This commit is contained in:
Reinier Balt 2013-05-11 23:13:16 +02:00
parent 65859807ea
commit 0bc9b0397a
42 changed files with 23 additions and 32 deletions

View file

@ -0,0 +1,21 @@
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
class SearchControllerTest < ActionController::TestCase
def setup
end
def test_get_search_page
login_as :admin_user
get :index
assert_response 200
end
def test_search_for_todo_with_tag
login_as :admin_user
post :results, :search => "gates"
assert_response 200
assert_equal 3, assigns['count'], "should have found 3 todos"
end
end