spec/knapsack/task_loader_spec.rb in knapsack-0.5.0 vs spec/knapsack/task_loader_spec.rb in knapsack-1.0.0

- old
+ new

@@ -1,10 +1,12 @@ describe Knapsack::TaskLoader do describe '#load_tasks' do - let(:rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack.rake" } + let(:rspec_rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack_rspec.rake" } + let(:cucumber_rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack_cucumber.rake" } it do - expect(subject).to receive(:import).with(rake_task_path) + expect(subject).to receive(:import).with(rspec_rake_task_path) + expect(subject).to receive(:import).with(cucumber_rake_task_path) subject.load_tasks end end end