Hi all
I found on this page a neat function that allows to write more semantic
test method names:
http://blog.jayfields.com/2006/12/rails-activerecord-unit-testing.html
With it one can create tests instead of
def test_add_should_do_this_or_that
# ...
end
the following way:
test "add should do this or that" do
# ...
end
It enhances the Test::Unit::TestCase class. So far, so good.
Now one time I''ve forgotten to include this new definition. When
running
my tests I got the error
test/unit/country_test.rb:8:in `test'': wrong number of arguments (1 for
2) (ArgumentError)
This tells me that there already *is* some sort of test function! I
couldn''t find any specification about this method, so I fear that maybe
I overwrite an important method by including the script above!
Anyone can tell me more about this issue? Thanks a lot.
Josh
--
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
-~----------~----~----~----~------~----~------~--~---