Sha256: 794204fc834b9c35bfe8c6959ca86b96da20701e63fa759d4462c1f7d38237fb
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
# encoding: utf-8 describe "Rake::Task['check:display']", :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:display"] } describe ".invoke", :sandbox do subject { try_in_sandbox { task.invoke } } it "invokes check:inch" do expect { subject } .to change { task_invoked? "check:inch" } .to(true) end it "invokes check:rubocop:display" do expect { subject } .to change { task_invoked? "check:rubocop:display" } .to(true) end it "invokes check:fu:display" do expect { subject } .to change { task_invoked? "check:fu:display" } .to(true) end it "invokes check:coverage:display" do expect { subject } .to change { task_invoked? "check:coverage:display" } .to(true) end it "invokes check:pippi:display" do expect { subject } .to change { task_invoked? "check:pippi:display" } .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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hexx-suit-0.1.0 | spec/tests/tasks/check/display_spec.rb |
hexx-suit-0.0.1 | spec/tests/tasks/check/display_spec.rb |