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

Merged
merged 1 commit into from Feb 23, 2014

Conversation

Projects
None yet
2 participants
@winston
Contributor

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.

Require rspec/matchers before require enumerate/integrations/rspec.
- `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

Merge pull request #143 from winston/fixed-spring-rspec
Require rspec/matchers before require enumerate/integrations/rspec.

@lest lest merged commit 7e28649 into brainspec:master Feb 23, 2014

1 check passed

default The Travis CI build passed
Details
@lest

This comment has been minimized.

Show comment
Hide comment
@lest

lest Feb 23, 2014

Member

Thanks!

Member

lest commented Feb 23, 2014

Thanks!

@winston winston deleted the winston:fixed-spring-rspec branch Feb 23, 2014

@winston winston restored the winston:fixed-spring-rspec branch Feb 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment