I just created a mountable engine. The test directory looks somewhat like this:
engine_name
-test
- dummy
- test_helper.rb
- models
-engine_name
-- user_test.rb
etc
- I attempted to call 'rspec' -> didn't work. Error message stated it couldn't find the folder 'spec'
- I then called 'rspec test' -> it found the directory, but didn't find the test.
- Found that rspec looks for *_spec.rb files, so I renamed user_test.rb to user_spec.rb
- rspec then found the file, but it said it couldn't find test_helper.rb (since that was required by user_spec.rb).
I have a feeling that this engine's test directory is not designed for rspec. What's the best way to test an engine?
Thanks!