Closed eedwards-sk closed 6 years ago
To confirm my suspicion, adding an explicit dependency to my consuming gem's gemspec for chefspec
allows rake
to succeed.
Is there a reason that it's not an explicit dependency for halite?
It isn't a dependency because it's optional. Only needed if you want to use ChefSpec.
I'm requiring halite in my gemspec
spec.add_runtime_dependency 'halite', '~> 1.8'
I've ran
bundle install
I have a spec_helper generated with
bundle gem
I've added
require 'halite/spec_helper'
andconfig.include Halite::SpecHelper
I've added
require 'halite/rake_tasks'
to my rakefileWhen running
rake
from the project folderIf I'm parsing this correctly then it appears that
chefspec
is not being specified as a dependency in the gemspec, and thus isn't getting installed bybundle install
.