Sha256: 3c1e4d6d7dfa6664a1b789776cbcb675efb3cf9898cd1c2d18af1ae857e6f22d

Contents?: true

Size: 642 Bytes

Versions: 8

Compression:

Stored size: 642 Bytes

Contents

# encoding: utf-8

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

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

    subject { try_in_sandbox { task.invoke } }

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

    it "invokes check:rubocop:display" do
      expect { subject }
        .to change { task_invoked? "check:rubocop: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/rubocop_spec.rb
hexx-suit-2.3.0 spec/tests/tasks/check/rubocop_spec.rb
hexx-suit-2.2.3 spec/tests/tasks/check/rubocop_spec.rb
hexx-suit-2.2.2 spec/tests/tasks/check/rubocop_spec.rb
hexx-suit-2.2.1 spec/tests/tasks/check/rubocop_spec.rb
hexx-suit-2.2.0 spec/tests/tasks/check/rubocop_spec.rb
hexx-suit-2.1.0 spec/tests/tasks/check/rubocop_spec.rb
hexx-suit-2.0.0 spec/tests/tasks/check/rubocop_spec.rb