Take the 2-minute tour ×  Here's my problem. If I run the test
using the ruby command the tests all pass. However, if I use the
rake test:functionals they all fail with the error below. I'm
not sure what I have to do differently to get them to pass when
using the rake task, but I'd greatly appreciate any guidance you
might offer.   class TasksControllerTest <
ActionController::TestCase     set_fixture_class :Action =>
'Task'     fixtures :Action      setup :initialize_test
test "the truth" do         assert true      def initialize_test
@user = users :one         sign_in @user          @task = Action
:one    # Here's the line that is throwing the error.  1) Error:
FixtureClassNotFound: No class attached to find.
test/functional/tasks_controller_test.rb:20:in `initialize_test'
share|improve this question If I understand correctly, you have
a Task model whose table name is Action. This means you should
have app/models/task.rb and test/fixtures/Action.yml (or csv).
Did I get that rig