Skip to content

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

Merged
lest merged 1 commit into
brainspec:masterfrom
winston:fixed-spring-rspec
Feb 23, 2014
Merged

Require rspec/matchers before require enumerate/integrations/rspec.#143
lest merged 1 commit into
brainspec:masterfrom
winston:fixed-spring-rspec

Conversation

@winston

@winston winston commented Feb 22, 2014

Copy link
Copy Markdown
Contributor

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

lest commented Feb 23, 2014

Copy link
Copy Markdown
Member

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