Vlad Rudskoy
Vlad Rudskoy

Reputation: 716

Cannot find 'spec/support folder'

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?

enter image description here

Upvotes: 0

Views: 575

Answers (1)

Eric Wu
Eric Wu

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

Related Questions