Sha256: e85de7be42bffafeacab6aa02399f8fb50e1391786a33cd6e24b8ef419118389
Contents?: true
Size: 654 Bytes
Versions: 8
Compression:
Stored size: 654 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, :capture 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
8 entries across 8 versions & 1 rubygems