Been using RSpec for a while (great testing tool!), and I'm trying to get another test framework to integrate with it (spinach-rails, specifically).
In rails 4.x, everything was working with the following Spinach config: features/support/env.rb ENV["RAILS_ENV"] = "test" require './config/environment' require './spec/spec_helper.rb' ... However, now when I import rails_helper.rb (in rails 5.2) in place of spec_helper.rb, I get an error indicating that it can't find the spec_helper file (required in the rails_helper file). It seems clear to me that rails isn't autoloading the rest of the environment. Rspec doesn't have these issues, and loads correctly, even when I remove the rspec-rails library from the rails_helper.rb. Would you be able to help me understand how rspec/rspec-rails loads the rails env files and what role railties plays in that? I was expecting to be able to use `require 'rails_helper'` and have everything else "just work". Thank you for your help! -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/940d9178-227a-42c9-8ea8-0b060d05a6c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
