| View previous topic :: View next topic |
| Author |
Message |
Erno Mononen Posted via mailing list.
|
Posted: Sat Oct 18, 2008 9:28 pm Post subject: Tests all error after upgrading to 6.5 beta |
|
|
I was able to reproduce with your steps, so I filed
http://www.netbeans.org/issues/show_bug.cgi?id=150622 for this. Don't
know the cause yet, will investigate. Thanks once again for the steps to
reproduce,
Erno
Erno Mononen wrote:
| Quote: |
Thanks a lot! That's really helpful, I will try your steps.
Erno
bkocik wrote:
| Quote: | I found this thread because I was having the same problem myself. I
upgraded
to last night's nightly build of 6.5 (200810170201), and I still have
the
issue. The good news is I can easily recreate it for you.
If you happen to have Rails 1.2.6 (or, presumably, any 1.2.x version,
though
I only know I can reproduce with 1.2.6 for sure - it doesn't fail
with my
2.1.0 projects), try these commands:
rails _1.2.6_ test_fail
cd test_fail
script/generate controller main index
Now open that as a new project in NetBeans, create your test_fail_test
database, and try to run the main_controller_test.rb file. If the
stars are
aligned, you'll get a stack trace that begins thusly:
1) Error:
test_truth(MainControllerTest):
ArgumentError: interning empty string
Alternatively, I've created a project using the above steps and have
frozen
Rails 1.2.6 into it. You can pick it up here:
http://bkocik.net/tmp/test_fail.tar.gz
I tried to make it work without a DB, but was unsuccessful, so you'll
have
to either modify it to do that or create a test_fail_test database in
MySQL.
Hope this helps . . .
|
|
|
|
| Back to top |
|
 |
Chris Nelson Posted via mailing list.
|
Posted: Sun Oct 19, 2008 3:06 am Post subject: Tests all error after upgrading to 6.5 beta |
|
|
Hey, I actually managed to track down and fix the problem. I thought
it was kind of interesting so I blogged about it here:
http://mysterycoder.blogspot.com/2008/10/fun-with-hook-methods-in-ruby.html
Attached is a version nb_test_mediator.rb which fixes the problem by
correctly delegating to super from inherited. If you would, let me
know if it makes into the codebase so I know when it's safe to upgrade
to a later build of NB.
Thanks, and please accept my apologies for the overly negative tone of
my earlier email. This was a rather tricky bug (at least I found it
so).
--Chris
On Sat, Oct 18, 2008 at 5:28 PM, Erno Mononen <address-removed> wrote:
| Quote: |
I was able to reproduce with your steps, so I filed
http://www.netbeans.org/issues/show_bug.cgi?id=150622 for this. Don't know
the cause yet, will investigate. Thanks once again for the steps to
reproduce,
Erno
Erno Mononen wrote:
| Quote: |
Thanks a lot! That's really helpful, I will try your steps.
Erno
bkocik wrote:
| Quote: |
I found this thread because I was having the same problem myself. I
upgraded
to last night's nightly build of 6.5 (200810170201), and I still have the
issue. The good news is I can easily recreate it for you.
If you happen to have Rails 1.2.6 (or, presumably, any 1.2.x version,
though
I only know I can reproduce with 1.2.6 for sure - it doesn't fail with my
2.1.0 projects), try these commands:
rails _1.2.6_ test_fail
cd test_fail
script/generate controller main index
Now open that as a new project in NetBeans, create your test_fail_test
database, and try to run the main_controller_test.rb file. If the stars
are
aligned, you'll get a stack trace that begins thusly:
1) Error:
test_truth(MainControllerTest):
ArgumentError: interning empty string
Alternatively, I've created a project using the above steps and have
frozen
Rails 1.2.6 into it. You can pick it up here:
http://bkocik.net/tmp/test_fail.tar.gz
I tried to make it work without a DB, but was unsuccessful, so you'll
have
to either modify it to do that or create a test_fail_test database in
MySQL.
Hope this helps . . .
|
|
|
| Description: |
|
 Download |
| Filename: |
nb_test_mediator.rb |
| Filesize: |
46 Bytes |
| Downloaded: |
95 Time(s) |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|