I have the same problem on the new builds. I was finally able to
narrow down what the problem is, and hack in a fix, but don't know
*why* it happened. It appears to be some freaky combination of my
particular project and NB. The issue is that a nil gets passed down
into the Fixtures.create_fixtures method for the table_names param,
but only when I run them in NB. When I run on command line it gets
[]. I fixed by hacking Fixtures to check for nil and set it to [].
But I have no idea how this param gets different values based on
whether I run from NB or not. Also, when created a clean project with
a simple AR test it didn't exhibit this behaviour, so I guess it is
some weird interaction between NB and my specific project.
--Chris
On Fri, Oct 10, 2008 at 11:59 AM, Chris Nelson
<
me@...> wrote:
> The same tests run fine under command line and from emacs, so it
> something specific to the way NetBeans is running them it appears.
> I'll let you know if the new build helps.
>
> On Fri, Oct 10, 2008 at 11:44 AM, Erno Mononen <
Erno.Mononen@...> wrote:
>> OK, let us know whether that helped. If the problem persists, could you try
>> running 'rake test' both from the IDE and command line (with the same ruby
>> platform of course) and see whether the problem exists only in the IDE?
>>
>> I googled a bit and found the following posts on the same problem, might be
>> of help to you:
>>
>>
http://1000fires.com/wordpress/?p=21>>
http://www.ruby-forum.com/topic/148651>>
>> Erno
>>
>> Chris Nelson wrote:
>>>
>>> I tried running them using Test File and Run Focused Test (not from
>>> rake). I'll try with the latest build as well.
>>>
>>> --Chris
>>>
>>> On Fri, Oct 10, 2008 at 3:36 AM, Erno Mononen <
Erno.Mononen@...>
>>> wrote:
>>>
>>>>
>>>> Hi Chris,
>>>>
>>>> Chris Nelson wrote:
>>>>
>>>>>
>>>>> I have an existing Rails project where tests pass fine on the command
>>>>> line, but from inside NetBeans they all fail with an error in
>>>>> create_fixtures, even though this test doesn't use any fixtures at
>>>>> all. I was developing this project and running test cases just find
>>>>> in NB 6.1. Here is a sample stack trace:
>>>>>
>>>>>
>>>>
>>>> How do you run the test from the IDE, i.e. by using the Test action or by
>>>> running a rake task? If the latter, which rake task? Also, could you
>>>> please
>>>> try the latest dev build and see if the issue exists there too
>>>>
>>>> (
http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-HowDoIGetTheContinuousBuilds).
>>>>
>>>> Thanks,
>>>> Erno
>>>>
>>>>
>>>>>
>>>>> 4) Error:
>>>>>
>>>>>
>>>>> test_select_date_with_invalid_date(RecordForeignReprescribeControllerTest):
>>>>> ArgumentError: interning empty string
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:251:in
>>>>> `to_sym'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:251:in
>>>>> `create_fixtures'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:250:in
>>>>> `map'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:250:in
>>>>> `create_fixtures'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/base.rb:867:in
>>>>> `silence'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:248:in
>>>>> `create_fixtures'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:593:in
>>>>> `load_fixtures'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:547:in
>>>>> `setup_with_fixtures'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:575:in
>>>>> `setup'
>>>>>
>>>>>
>>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/testcase.rb:77:in
>>>>> `unlogged_run'
>>>>>
>>>>>
>>>>> /Users/superchris/dev/medwiz/medwiz/delanor/development/test/functional/../test_helper.rb:72:in
>>>>> `run'
>>>>>
>>>>>
>>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in
>>>>> `run'
>>>>>
>>>>>
>>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
>>>>> `each'
>>>>>
>>>>>
>>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
>>>>> `run'
>>>>>
>>>>>
>>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in
>>>>> `run_suite'
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
users-unsubscribe@...
>>>>> For additional commands, e-mail:
users-help@...
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
users-unsubscribe@...
>>>> For additional commands, e-mail:
users-help@...
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
users-unsubscribe@...
>>> For additional commands, e-mail:
users-help@...
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
users-unsubscribe@...
>> For additional commands, e-mail:
users-help@...
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...