Sha256: e0b587de722a4e5b6647632b9180b447d69c5913b1b21ba9cc7fb781101916c3

Contents?: true

Size: 452 Bytes

Versions: 8

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8

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

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

    subject { try_in_sandbox { task.invoke } }

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

Version data entries

8 entries across 8 versions & 1 rubygems

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