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

Seems not working with Rails Spring #28

Closed
lazywei opened this issue Apr 20, 2015 · 3 comments
Closed

Seems not working with Rails Spring #28

lazywei opened this issue Apr 20, 2015 · 3 comments

Comments

@lazywei
Copy link

lazywei commented Apr 20, 2015

Hi,

I'm trying to use this with spring like this:

AUTODOC=1 spring rspec  --color  spec/requests/users_spec.rb

but it generates nothing.

I need to use it without spring like this

AUTODOC=1 rspec  --color  spec/requests/users_spec.rb:19

to make it generate docs.

I'm not sure if this is autodoc's or spring's issue?
Thanks

@r7kamura
Copy link
Owner

hmm, I have no idea what is going on spring because spring has a lot of issues in integrations with other libraries and I'm not using it, however,

require "autodoc/rspec" if ENV["AUTODOC"]
or https://github.com/r7kamura/autodoc/blob/45e81d54d67b414d3fd4b1e3286bd429e5cc858b/lib/autodoc/rspec.rb might be related to this issue. Probably you may be able to work autodoc with spring by require "autodoc/rspec" in your spec_helper.rb.

@lazywei
Copy link
Author

lazywei commented Apr 20, 2015

Got it. I think the problem should be on spring's side.
Thanks for the information. I think I can use that workaround.

By the way, a little off-topic, do you have any other recommended rails preloader other than spring then?

Thanks.

@lazywei lazywei closed this as completed Apr 20, 2015
@r7kamura
Copy link
Owner

I have tried burke/zeus, sporkrb/spork, nviennot/rspec-console, and rails/spring, but any of these were confusing in some cases. (e.g. they have poor imcompatibility with fixture replacement like thoughtbot/factory_girl and notahat/machinist). Finally I'm not using any rails preloader and keep each test fast by separating spec_helper.rb & rails_helper.rb.

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

2 participants