My spec folder is setup like this:
/spec
/spec/spec_helper.rb
/spec/lib
/spec/lib/some_file_spec.rb
My some_file_spec.rb has:
require ‘spec_helper’
describe “…” do
end
Why does this work even though the spec_helper file is in a folder below the actual file I am writing the specs for?
What techniques are there to include files? I see this also:
require File.expand_path(‘…/boot’, FILE)