Sha256: 3f1a52b7590ee13dce992232676fc2a6e7e1e7f67db909ae78b79d36830c198b
Contents?: true
Size: 644 Bytes
Versions: 9
Compression:
Stored size: 644 Bytes
Contents
# encoding: utf-8 describe "Rake::Task['check:yardstick']", :tasks do # The {#task_invoked?} helper is defined in the spec/support/config/tasks.rb # It checks if a task has been invoked. let(:task) { Rake::Task["check:yardstick"] } describe ".invoke", :sandbox do subject { try_in_sandbox { task.invoke } } it "invokes check:yardstick:run" do expect { subject } .to change { task_invoked? "check:yardstick:run" } .to(true) end it "invokes check:yardstick:display" do expect { subject } .to change { task_invoked? "check:yardstick:display" } .to(true) end end end
Version data entries
9 entries across 9 versions & 1 rubygems