Sha256: 3f1a52b7590ee13dce992232676fc2a6e7e1e7f67db909ae78b79d36830c198b

Contents?: true

Size: 644 Bytes

Versions: 9

Compression:

Stored size: 644 Bytes

Contents

# encoding: utf-8

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

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

    it "invokes check:yardstick:run" do
      expect { subject }
        .to change { task_invoked? "check:yardstick:run" }
        .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

9 entries across 9 versions & 1 rubygems

Version Path
hexx-suit-1.5.0-x86_64-linux spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-1.3.0-x86_64-linux spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-1.2.0 spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-1.0.0 spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-0.2.2 spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-0.2.1 spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-0.2.0 spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-0.1.0 spec/tests/tasks/check/yardstick_spec.rb
hexx-suit-0.0.1 spec/tests/tasks/check/yardstick_spec.rb