Sha256: 3aaaab0d33ccec3ba56733d94851cc7f86436bb516dd2e30f5f425da199e12d9

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 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 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

9 entries across 9 versions & 1 rubygems

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