Sha256: f7aec8896c81302ff7297767aca690f746967c1c4e27aa83eacf0fd8dd6d58cd

Contents?: true

Size: 513 Bytes

Versions: 5

Compression:

Stored size: 513 Bytes

Contents

# encoding: utf-8

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

  # The {#commands} variable is defined in the spec/support/config/tasks.rb
  # It collects the list of commands, that has been sent to system by
  # any instance of Hexx::Suit::Utils::System utility.

  let(:task) { Rake::Task["check:inch"] }

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

    it "runs inch metric" do
      expect { subject }.to change { commands }.to ["inch --pedantic"]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 spec/tests/tasks/check/inch_spec.rb
hexx-suit-0.2.1 spec/tests/tasks/check/inch_spec.rb
hexx-suit-0.2.0 spec/tests/tasks/check/inch_spec.rb
hexx-suit-0.1.0 spec/tests/tasks/check/inch_spec.rb
hexx-suit-0.0.1 spec/tests/tasks/check/inch_spec.rb