pat / combustion

Simple, elegant testing for Rails Engines
MIT License
708 stars 51 forks source link

Support for Minitest? #78

Closed ericpeters0n closed 6 years ago

ericpeters0n commented 7 years ago

yes/no/maybe/already?

pat commented 7 years ago

I've not used Combustion with Minitest, nor does anything within it exist specifically for that purpose, but patches are very much welcome. It was discussed briefly in #4, but nothing detailed.

ericpeters0n commented 7 years ago

Thanks for the reply. I’ll poke at it to explore feasibility and effort when I get a chance! :)

jmervine commented 7 years ago

FWIW, I was able to use this with Minitest by creating a test/test_helper.rb file, which I required in each of my tests files...

#file: test/test_helper.rb
require "combustion"
Combustion.path = "test/internal"
Combustion.initialize! :all

Note; I'm only testing Railties here, not submitting http requests, so I'm not sure about that.

pat commented 7 years ago

Thanks for sharing that Joshua, great to hear it's working for you :)

fschwahn commented 7 years ago

I did exactly the same, also works flawlessly. I'm doing integration tests, however I'm not using activerecord.