Sha256: 5006f031f4f15ed3fd3ff05a85b78e15fc6eab782694a787d6740192977c083c

Contents?: true

Size: 412 Bytes

Versions: 8

Compression:

Stored size: 412 Bytes

Contents

# encoding: utf-8

describe "Rake::Task['check:yardstick:run']", :tasks do

  let(:metric) { Hexx::Suit::Metrics::Yardstick }
  let(:task)   { Rake::Task["check:yardstick:run"] }

  describe ".invoke", :sandbox, :capture do

    subject { try_in_sandbox { task.invoke } }

    context "always" do

      it "runs the metric" do
        expect(metric).to receive(:run)
        subject
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hexx-suit-2.3.2 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.3.0 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.2.3 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.2.2 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.2.1 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.2.0 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.1.0 spec/tests/tasks/check/yardstick/run_spec.rb
hexx-suit-2.0.0 spec/tests/tasks/check/yardstick/run_spec.rb