-
Notifications
You must be signed in to change notification settings - Fork 171
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
Minitest tests no longer run after requiring 'email_spec' #112
Comments
This is a feature that instantly gives you a green test suite. :) Seriously though, I have no idea why requiring email-spec would do this since there is no minitest specific code in email-spec. I've never used minitest though so I don't even know where to begin looking. I don't think I'll have time to look into this so if a minitest expert (maybe @blowmage?) could shed some light on this I would appreciate it. |
@andyw8 How are you configuring your app to test with Minitest? Are you using minitest-rails or are you configuring Minitest yourself? |
I'm using minitest-rails and minitest-rails-capybara. I suspect something is conflicting. |
email-spec has a dependency on rspec-rails. So when you require it in your Gemfile it switches your app to use RSpec instead of Minitest. That is why no tests are getting run, because you don't have any (specs). |
I can't recall why email-spec relies on rspec-rails. It may not be necessary and could be removed. I'd be willing to merge in a patch that does that but I won't have time to it myself. |
FWIW, the dependency that was problematic is the runtime dependency on |
This can be resolved by #118, which adds support for MiniTest. |
I have email-spec (version 1.4.0) working with MiniTest (bundling minitest-matchers), except when using some helpers because of the call to RSpec's |
Huh, I didn't realize there was a reverse dependency on the testing library in the helper. I guess one way to fix this is to place the call behind a conditional:
Or, the other way is to remove the @bmabey What do you think? |
After looking at the file again I'm somewhat confused why the |
I've added email_spec to my Gemfile. When I put
require 'email_spec'
in my test helper, and try to run the tests, I get this output:When I remove the
require 'email_spec'
and re-run them all is fine.I'm using Rails 3.0.8
The text was updated successfully, but these errors were encountered: