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