File: task_loader_spec.rb

package info (click to toggle)
ruby-knapsack 1.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,084 kB
  • sloc: ruby: 2,832; makefile: 4; sh: 3
file content (16 lines) | stat: -rw-r--r-- 751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
describe Knapsack::TaskLoader do
  describe '#load_tasks' do
    let(:rspec_rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack_rspec.rake" }
    let(:cucumber_rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack_cucumber.rake" }
    let(:spinach_rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack_spinach.rake" }
    let(:minitest_rake_task_path) { "#{Knapsack.root}/lib/tasks/knapsack_minitest.rake" }

    it do
      expect(subject).to receive(:import).with(rspec_rake_task_path)
      expect(subject).to receive(:import).with(cucumber_rake_task_path)
      expect(subject).to receive(:import).with(spinach_rake_task_path)
      expect(subject).to receive(:import).with(minitest_rake_task_path)
      subject.load_tasks
    end
  end
end