Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for Rails specs? #14

Open
christopherslee opened this issue Oct 10, 2012 · 8 comments
Open

Not working for Rails specs? #14

christopherslee opened this issue Oct 10, 2012 · 8 comments

Comments

@christopherslee
Copy link

Hi,

First off, this project is awesome, it's what we've been looking for to make our JRuby on Rails specs faster!

We ran into two issues: 1, the latest gem on rubygems.org is 0.1.3 which has the typo error in it. I see 0.1.4 here but it's not available on rubygems.

Secondly, when we run a rails controller spec, it cannot find ApplicationController. Is there something we're supposed to configure out our side to get the app loaded?

JRuby 1.6.5, Ruby 1.8.7, Rails 3.1

Thanks,
Chris

@jkutner
Copy link
Owner

jkutner commented Oct 13, 2012

I'll get the new version out as soon as i can (been really busy with other stuff lately). I'm not sure about the ApplicationController thing. Seems like I would have run into that myself, but haven't. Can you create a little example?

@christopherslee
Copy link
Author

yeah, i'll work on an example to see if i can recreate it myself.

On Sat, Oct 13, 2012 at 6:02 PM, Joe Kutner [email protected]:

I'll get the new version out as soon as i can (been really busy with other
stuff lately). I'm not sure about the ApplicationController thing. Seems
like I would have run into that myself, but haven't. Can you create a
little example?


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-9412314.

@christopherslee
Copy link
Author

i'm unable to recreate the error in a brand new rails app, so it must be something with our app. i'll see if i can get into it a little bit more.

@jkutner
Copy link
Owner

jkutner commented Oct 24, 2012

Ok, i'll leave this open until you learn more. I pushed 0.1.4.

@nilbus
Copy link
Collaborator

nilbus commented May 15, 2013

Could this be related to #26?

@scottillogical
Copy link

I'm having this issue, it only appears when you run the specs multiple times - it tries to require ApplicationController twice and then freaks out

@scottillogical
Copy link

Also, this generally only happens with controller tests

@nilbus
Copy link
Collaborator

nilbus commented Feb 20, 2014

Since JRuby cannot fork, reloading classes is the only way we can load new changes before re-running specs. As of version 1.2.1, this gem uses Rails class reloading and an interface for custom reloaders to help alleviate problems with that.

Are you using guard-jruby-rspec 1.2.1? If so, what version of Rails?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants