diff --git a/test/functional/categories_controller_test.rb b/test/functional/categories_controller_test.rb index f065110..6a04e7a 100644 --- a/test/functional/categories_controller_test.rb +++ b/test/functional/categories_controller_test.rb @@ -32,12 +32,10 @@ class CategoriesControllerTest < ActionController::TestCase end def test_edit - cat = Category.new - env.categories.expects(:find).with('1').returns(cat) - get :edit, :id => '1' + get :edit, :id => cat1 assert_response :success assert_template 'edit' - assert_equal cat, assigns(:category) + assert_equal cat1, assigns(:category) end def test_edit_save diff --git a/test/functional/tasks_controller_test.rb b/test/functional/tasks_controller_test.rb index b2aee1f..b1dd829 100644 --- a/test/functional/tasks_controller_test.rb +++ b/test/functional/tasks_controller_test.rb @@ -246,6 +246,7 @@ class TasksControllerTest < ActionController::TestCase @controller.stubs(:profile).returns(c) c.affiliate(profile, Profile::Roles.all_roles(c.environment)) person = create_user('test_user').person + c.add_member(person) p_blog = Blog.create!(:profile => person, :name => 'Blog') c_blog1 = Blog.create!(:profile => c, :name => 'Blog') c_blog2 = Blog.new(:profile => c); c_blog2.name = 'blog2'; c_blog2.save! -- libgit2 0.21.2