Sha256: f0a43c3e3ff56ad01dd2b0fe33cf1dff3d742a42f027b4a8518f6614cb30162f

Contents?: true

Size: 904 Bytes

Versions: 3

Compression:

Stored size: 904 Bytes

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 test:coverage:run" do
      expect { subject }
        .to change { task_invoked? "test: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-1.5.0-x86_64-linux spec/tests/tasks/check/run_spec.rb
hexx-suit-1.3.0-x86_64-linux spec/tests/tasks/check/run_spec.rb
hexx-suit-1.2.0 spec/tests/tasks/check/run_spec.rb