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

Does not work with clean RSpec 3.2 #148

Closed
pkuczynski opened this issue May 7, 2015 · 3 comments
Closed

Does not work with clean RSpec 3.2 #148

pkuczynski opened this issue May 7, 2015 · 3 comments
Milestone

Comments

@pkuczynski
Copy link

When installed on clean project with RSpec 3.2, running tests raise an error

spec/i18n_spec.rb:4:in `<top (required)>': undefined method `describe' for main:Object (NoMethodError)

Changing describe to RSpec.describe in spec/i18n_spec.rb solves the problem.

@glebm
Copy link
Owner

glebm commented May 8, 2015

Does RSpec.describe work with rspec < 3.2? If so let's change it

@pkuczynski
Copy link
Author

I would think so, but have no env to check.

@pkuczynski
Copy link
Author

I found some extra explanation of the difference in both calls:

http://stackoverflow.com/questions/24747448/rspec-describe-vs-describe

I think you can safely assume RSpec.describe will work everywhere and is more safe to use.

@glebm glebm added this to the v0.8.6 milestone Jul 30, 2015
@glebm glebm closed this as completed in 2bee3dc Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants