Suddenly ALL my tests fail

Hiall,

Yesterday evening my testsuite passed all tests. Today not a single test passes anymore … All of them with the error below. (I’m running edgerails, freezed a few days ago)

Exception: undefined method `unlock_mutex’ for ActiveRecord::Base:Class

J:/Code/Rails/EdgyQuestions/config/…/vendor/rails/activerecord/lib/active_record/base.rb:1188:in method_missing' F:/Programme/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:534:in teardown’

F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testcase.rb:77:in run' F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in run’
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run’

F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in run' F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in run’
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in `run_suite’

F:/Programme/RadRails-0.7.0/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:107:in start_mediator' F:/Programme/RadRails-0.7.0/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:52:in start’

F:/Programme/RadRails-0.7.0/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:272

Any suggestions?

cheers
Martin

Martin Gamsjaeger wrote:

F:/Programme/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:534:in
`teardown'

Any idea why that line is coming out of your gems rather than your
vendor/rails directory?

Chris

Good point! No, I don't have a clue :slight_smile: but I'll definitely look into
this issue. This reminds me that I wanted to do a check if my
environment is really using edgerails. Is there an easy way to do so?
Or do I have to use features not present in gemrails, like the cool
REST stuff (which anyway was the main reason for me to upgrade), to see
if I'm running on edge. OTOH, why should gemrails have a problem with
my testsuite? I'm definitely not using edge features atm. I also read
about difficulties using mysql5 on windows, which I actually did so far
without troubles. I have instantrails installed but "I think" I'm only
using Ruby itself from there. I develop using Radrails, maybe this
needs to be configured explicitly to use edge. Atm I only tell it to
use Ruby from the InstantRails dir, and I haven't specified any rails
install :slight_smile: Maybe there is the problem ...

If I specify edge as Gem under Rails in Radrails preferences (which
actually is weird since it isn't a gem?) I get the following errors.
(It's all in the mix now :slight_smile:

Exception: undefined method `unlock_mutex' for ActiveRecord::Base:Class
J:/Code/Rails/EdgyQuestions/config/../vendor/rails/activerecord/lib/active_record/base.rb:1188:in
`method_missing'
F:/Programme/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:534:in
`teardown'
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testcase.rb:77:in
`run'
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in
`run'
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in
`run'
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in
`run'
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in
`run'
F:/Programme/InstantRails/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in
`run_suite'
F:/Programme/RadRails-0.7.0/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:107:in
`start_mediator'
F:/Programme/RadRails-0.7.0/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:52:in
`start'
F:/Programme/RadRails-0.7.0/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:272

One way to test to ensure you're using your vendor/rails installation
instead of your gem, is to delete your gem and see if your app still
runs.