Re: [Rails-core] test "this is a test" do vs def this_is_a_test

2009-12-18 Thread Matt Jones
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

Re: [Rails-core] test "this is a test" do vs def this_is_a_test

2009-12-18 Thread Andrew Kaspick
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

Re: [Rails-core] test "this is a test" do vs def this_is_a_test

2009-12-18 Thread Michael Koziarski
> 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

[Rails-core] test "this is a test" do vs def this_is_a_test

2009-12-16 Thread Andrew Kaspick
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