Sha256: 3cef75fd3fc88978278628b4e09aa7fe7803285f217894c8846e4b1af11bd6ee
Contents?: true
Size: 1005 Bytes
Versions: 8
Compression:
Stored size: 1005 Bytes
Contents
# encoding: utf-8 describe "Rake::Task[:check]", :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] } describe ".invoke", :sandbox, :capture do subject { try_in_sandbox { task.invoke } } it "invokes test:coverage" do expect { subject } .to change { task_invoked? "test:coverage" } .to(true) end it "invokes check:rubocop" do expect { subject } .to change { task_invoked? "check:rubocop" } .to(true) end it "invokes check:fu" do expect { subject } .to change { task_invoked? "check:fu" } .to(true) end it "invokes check:inch" do expect { subject } .to change { task_invoked? "check:inch" } .to(true) end it "invokes check:yardstick" do expect { subject } .to change { task_invoked? "check:yardstick" } .to(true) end end end
Version data entries
8 entries across 8 versions & 1 rubygems