Sha256: 73e795f68ee197d6dd5c922b938154af73a539801455301c3cc3f285ca52dabe

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

# encoding: utf-8

describe "Rake::Task['check:run']", :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:run"] }

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

    it "invokes check:pippi:run" do
      expect { subject }
        .to change { task_invoked? "check:pippi:run" }
        .to(true)
    end if USE_PIPPI_METRIC

    it "invokes check:coverage:run" do
      expect { subject }
        .to change { task_invoked? "check:coverage:run" }
        .to(true)
    end

    it "invokes check:rubocop:run" do
      expect { subject }
        .to change { task_invoked? "check:rubocop:run" }
        .to(true)
    end

    it "invokes check:fu:run" do
      expect { subject }
        .to change { task_invoked? "check:fu:run" }
        .to(true)
    end

    it "invokes check:yardstick:run" do
      expect { subject }
        .to change { task_invoked? "check:yardstick:run" }
        .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/run_spec.rb
hexx-suit-0.2.1 spec/tests/tasks/check/run_spec.rb
hexx-suit-0.2.0 spec/tests/tasks/check/run_spec.rb