Sha256: e9a74c8dc2e1bc64e9b2460609eb3887ee43d83f4b17036a1cd1d0840a562f14
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 KB
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 do subject { try_in_sandbox { task.invoke } } it "invokes check:pippi:configure" do expect { subject } .to change { task_invoked? "check:pippi:configure" } .to(true) end if USE_PIPPI_METRIC it "invokes check:pippi:display" do expect { subject } .to change { task_invoked? "check:pippi:display" } .to(true) end if USE_PIPPI_METRIC it "invokes check:coverage" do expect { subject } .to change { task_invoked? "check: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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hexx-suit-0.2.2 | spec/tests/tasks/check_spec.rb |
hexx-suit-0.2.1 | spec/tests/tasks/check_spec.rb |
hexx-suit-0.2.0 | spec/tests/tasks/check_spec.rb |