On 17 Apr 2009, at 16:53, Fernando Perez wrote:
>
> 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
>
>
>
> And still no luck. Has anything changed from the various tutorials
> found
> on the internet? Also guides.rubyonrails.org has nothing about that.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---