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

Require rspec/matchers before require enumerate/integrations/rspec. #143

Merged
merged 1 commit into from
Feb 23, 2014
Merged

Require rspec/matchers before require enumerate/integrations/rspec. #143

merged 1 commit into from
Feb 23, 2014

Conversation

winston
Copy link
Contributor

@winston winston commented Feb 22, 2014

Using Rails 4.0.3, Ruby 2.1 with rails/spring.

When if defined?(::RSpec) is used, and specs are ran with either spring rake or spring rspec it fails to load the enumerize matcher properly.

NoMethodError:
   undefined method `enumerize' for #<RSpec::Core::ExampleGroup::Nested_2::Nested_1:0x000001014521b0>

As described in rails/spring#209, the solution is to require rspec/matchers before the enumerize matcher.

- `if defined?(::RSpec)` it fails to load the enumerize matcher properly when used with rails/spring.
- similar to rails/spring#209
lest added a commit that referenced this pull request Feb 23, 2014
Require rspec/matchers before require enumerate/integrations/rspec.
@lest lest merged commit 7e28649 into brainspec:master Feb 23, 2014
@lest
Copy link
Member

lest commented Feb 23, 2014

Thanks!

@winston winston deleted the fixed-spring-rspec branch February 23, 2014 10:33
@winston winston restored the fixed-spring-rspec branch February 23, 2014 10:33
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

Successfully merging this pull request may close these issues.

2 participants