-
Notifications
You must be signed in to change notification settings - Fork 18
rspec can't find spec_helper #31
Comments
It looks like the path to I'm still slightly confused by this behavior, since supposedly RSpec 2 always has the spec folder in the load path. If anyone can clear this up for me, please do ;-) |
require_relative works for now, thanks for the suggestion. |
@nicgrayson @trinitronx while that "works" (and so does changing the command to |
After looking at what strainer is doing to run the chefspec tests, now it's starting to make sense. Since rspec is started with the current working directory set to the There are a couple solutions: |
@trinitronx is this something I can fix on the strainer end? FWIW, the same thing happens with Test Kitchen. |
Yes, you can probably fix this within strainer since rspec is spawned by strainer, and when it comes down to it, strainer is in control of it's sandbox directory, and the commands it spawns. Like I said, there are many ways to do this, but essentially you just need to add the cookbook's
|
Fixed in v3.1.0 |
Here is the simple cookbook I'm creating to test this.
https://github.com/nicgrayson/chef-ntp
The text was updated successfully, but these errors were encountered: