Reputation: 716
I'm trying Michael Hartl's rails guide, but I've faced a problem with Listing 5.9:
I haven't such directory!
What should I do?
Upvotes: 0
Views: 575
Reputation: 786
Just create a support folder, create something you want to use as well as what you do in rails, and add it in spec_helper.rb
like:
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
Upvotes: 2