Below pasted from posting in email@example.com:
I'm having trouble running my Rails specs from within NetBeans now that I've updated to rspec-1.1.4. I believe I'm using the standard(typical) setup where I
installed the rspec and rspec-rails plugins inside my vendor/plugins directory. From the command line if I use script/spec, everything works fine, but from
within NetBeans it looks like it always uses the Rspec gem and then runs into versioning problems(see below). Even if I update the Rspec gem(which we use
for non rails code) to 1.1.4, I was still seeing the mismatch, but I think it would be a valid case for a particular Rails app to use a different version. Is there
anyway to get NetBeans to run Rails specs using script/spec?
Thanks for filing this, will address for 6.5. Meanwhile as a workaround one can remove the gem in which case the IDE
will use the spec binary from the plugins dir, or use an alternative GEM_HOME as Lenny did.
The workaround of removing the gem is not really practical because I have some non rails ruby projects that do need the GEM and others that don't. Using
alternate GEM_HOMEs has also been impractical because the GEM_HOME is not configurable on a per project basis. Also, even if it was, it's a pain because the
Ruby Gems dialog always opens onto the 'Updated' tab and won't respond until it has gotten all its information over the network which is slow. Once it has
come back you are forced to 'Browse' to the new GEM_HOME location and can't just paste or type it in. All changes are lost once NB is closed. This is at least
how things are for me in NetBeans IDE 6.1 (Build 200805300101). Maybe these are other issues that have been addressed already.
> it's a pain because the Ruby Gems dialog always opens onto the 'Updated' tab and won't respond
> until it has gotten all its information over the network which is slow.
This was fixed in 6.5, you might grab new build here:
Could you file issue you encounter in Gem Manager (and sure, anywhere else) in 6.5 to the IssueZilla separately? Thanks
for the feedback.
Should be fixed in trunk now, changeset eaf56d193312. I changed the test runner to first check the existence script/
spec, next it will look for vendor/plugins/rspec/bin/spec and if still nothing found it'll use the spec binary from the
target platform. Please reopen if this still doesn't solve the issue for you.
Integrated into 'main-golden', available in build *200808120201* on http://bits.netbeans.org/dev/nightly/
User: Erno Mononen <firstname.lastname@example.org>
Log: #136483: contention between rspec plugins and rspec gem