# Anybody get RSpec working with Netbeans?

**URL:** <https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534>\
**Category:** Rails\
**Created:** [March 11, 2008, 1:44am UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534 "2008-03-11T01:44:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [March 11, 2008, 1:44am UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534/1 "2008-03-11T01:44:25Z")

</div>

Hi,

Has anyone got RSpec working with NetBeans? I am running Leopard and  
I don’t manage my gems with Netbeans. Do I have to manage the gems  
inside NetBeans in order to get it working?

Ron

P.S. Sorry if this is a bit OT.

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [March 11, 2008, 6:40am UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534/2 "2008-03-11T06:40:32Z")

</div>

On Mon, Mar 10, 2008 at 5:43 PM, Ron [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> Has anyone got RSpec working with NetBeans? I am running Leopard and  
> I don’t manage my gems with Netbeans. Do I have to manage the gems  
> inside NetBeans in order to get it working?

(Probably better to ask this on the netbeans ruby mailing list -  
removed\_email\_address@domain.invalid)

Sure, I use it every day (on Linux, and occasionally on Windows, not  
on a Mac). Anything in particular not working for you? The only real  
problem I’ve had is there seem to be some issues with using the ‘run  
focused test’ with rspec (I submitted a bug, but it’s not always a  
problem, I need to find a repro case). I don’t remember when the  
rspec stuff went in - it may be that you need to use a more recent  
NetBeans than what you’ve got. I’m using a daily build from

[http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/](http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/)

## No need to use the builtin gem management stuff in NetBeans if you don’t want to (and I never do).

James M. | removed\_email\_address@domain.invalid  
Ruby and Ruby on Rails consulting  
[blog.restphone.com](http://blog.restphone.com)

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [March 11, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534/3 "2008-03-11T15:35:09Z")

</div>

Yes, running rspec with netbeans. Like James, I’m on win and linux,  
though.

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [March 11, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534/4 "2008-03-11T21:41:46Z")

</div>

I’m using RSpec with NetBeans on a Leopard Mac. It’s been working fine  
for  
me.

I suspect you might be still using the JRuby that ships with the  
NetBeans  
application. Check the properties of your Ruby app. You can switch to  
a  
native Ruby installation instead (where you probably have the RSpec  
installed).

jdf

On Mon, Mar 10, 2008 at 8:43 PM, Ron [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

–  
Jeremy D. Frens  
removed\_email\_address@domain.invalid  
[http://www.norecess.org/](http://www.norecess.org/)

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [March 12, 2008, 2:00am UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534/5 "2008-03-12T02:00:42Z")

</div>

Hi Jeremy,

Yup. I am using the default jRuby. I switched paths to the Mac OS X  
install of Ruby, but now I’m having some problems using gems. It  
tells me that the Gems\_Home directory is not writable as this user.  
Any thoughts?

Ron

---

<div class="post-metadata">

**Author:** ![ron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@ron](https://www.ruby-forum.com/u/ron)\
**Post date:** [March 22, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/anybody-get-rspec-working-with-netbeans/131534/6 "2008-03-22T15:17:56Z")

</div>

Ron,

Sorry for taking so long to get back to you. Are you using “sudo” to  
install the gems? I install them from a terminal with “sudo”:

sudo gem install ZenTest

jdf

On Tue, Mar 11, 2008 at 8:59 PM, Ron [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Mar 11, 1:40 pm, “Jeremy Frens” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > Ron
> > 
> > > P.S. Sorry if this is a bit OT.
> > 
> > –  
> > Jeremy D. Frens  
> > removed\_email\_address@domain.invalid://www.norecess.org/

–  
Jeremy D. Frens  
removed\_email\_address@domain.invalid  
[http://www.norecess.org/](http://www.norecess.org/)
