johnnypez
johnnypez

Reputation: 151

Test suites not running in Rails 2.3.5

I am attempting to run basic unit tests.

When I run rake test:units the output initially shows files being loaded i.e. rake_test_loader, *_test.rb. There is no output after this however. The task exits with no errors.

I have also tried running a test indivdually with > ruby unit/some_test.rb There is no output from that either.

Any idea why the test suite is not running?

Here's the test_helper:

ENV["RAILS_ENV"] = "test"

require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'

class ActiveSupport::TestCase

  self.use_transactional_fixtures = false

  self.use_instantiated_fixtures  = false

  #fixtures :all

  # Add more helper methods to be used by all tests here...
end

and here's the basic test:

require 'test_helper'

class SomeTest < ActiveSupport::TestCase
  # Replace this with your real tests.
  test "the truth" do
    assert false
  end
end

Upvotes: 0

Views: 500

Answers (1)

Jason Weathered
Jason Weathered

Reputation: 7801

Try putting gem 'test-unit' before require 'test_help' in your test_helper.rb.

Upvotes: 1

Related Questions