11175
(-- --)
April 17, 2009, 3:53pm
1
Hi,
I have tests written as:
test "some test" do
...
end
But when I want to run a single test it doesn't work like before:
$ ruby test/functional/some_controller_test.rb -n some_test
Iget 0 test, 0 assertions...
I also rewrote the test to :
def some_test
...
end
And still no luck. Has anything changed from the various tutorials found
on the internet? Also guides.rubyonrails.org has nothing about that.
Hi,
I have tests written as:
test "some test" do
...
end
But when I want to run a single test it doesn't work like before:
$ ruby test/functional/some_controller_test.rb -n some_test
Iget 0 test, 0 assertions...
I also rewrote the test to :
def some_test
...
end
test method names have to start with test (ie test_some_test ) which
is what the block for of test does.
ruby ... -n test_some_test should do the trick
Fred