On Dec 17, 2009, at 2:56 AM, Andrew Kaspick wrote:
> The "test" method copied below complains when another test of the same
> name if found in another test file.
>
> The following doesn't work...
>
> test/integration/users_test.rb
> test "this is a test" do
> ...
> end
>
> test/integration/forums
Good point with... test "the truth"... I'll have to dig a bit more
because my test didn't seem to be replacing anything in the current
class.
Thanks
On Thu, Dec 17, 2009 at 10:57 PM, Michael Koziarski
wrote:
>> What's the purpose for "test" working this way?
>
> It should only be doing this if t
> What's the purpose for "test" working this way?
It should only be doing this if the method you're defining would be
*replacing* another test, it shouldn't matter if you have test with
the same name in different classes. The warning's saved me a few
times before, but it's possible that there's
The "test" method copied below complains when another test of the same
name if found in another test file.
The following doesn't work...
test/integration/users_test.rb
test "this is a test" do
...
end
test/integration/forums_test.rb
test "this is a test" do
...
end
but this does work...
test