restore all associations for tags. All tests are passing

This commit is contained in:
Reinier Balt 2012-04-08 22:10:43 +02:00
parent b2e34d4694
commit b2e6253b4c
8 changed files with 107 additions and 41 deletions

View file

@ -261,7 +261,7 @@ class TodosControllerTest < ActionController::TestCase
def test_find_tagged_with
login_as(:admin_user)
@user = User.find(@request.session['user_id'])
tag = Tag.find_by_name('foo').todos
tag = Tag.find_by_name('foo').taggings
@tagged = tag.count
get :tag, :name => 'foo'
assert_response :success