views:

10

answers:

0

I'm using Rails 2.3.8. I created a standard plugin running script/generate plugin machine_tags and I'm trying to run the default sample test that comes with it under vendor/plugins/machine_tags/test/machine_tags_test.rb. I go to the plugin directory and issue a rake test, but all I get is this:

(in /home/helder/code/shapado/vendor/plugins/machine_tags)
/home/helder/.rvm/rubies/ruby-1.8.7-p249/bin/ruby -I"lib:lib:test" "/home/helder/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/machine_tags_test.rb" 

It doesn't print anything like this example given in the plugin guide (which is very outdated, btw, as it still uses test/unit, not active_support/testcase):

Finished in 0.002236 seconds.

1 test, 1 assertion, 0 failures, 0 errors

I tried adding a puts "DEBUG" before the assertion, but still nothing happens. If I put it outside the test block though, it prints.

This is the sample test that got generated by script/generate plugins, as a reference:

require 'test_helper'

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

Would appreciate any help in figuring out what's wrong.