Sha256: ee000582a552f27aa4f9ea7dd0e0c31b753dfe90c6456de70ca803fca6894641

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 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::RSpec::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

4 entries across 4 versions & 1 rubygems

Version Path
hexx-suit-1.5.0-x86_64-linux spec/tests/tasks/check/inch_spec.rb
hexx-suit-1.3.0-x86_64-linux spec/tests/tasks/check/inch_spec.rb
hexx-suit-1.2.0 spec/tests/tasks/check/inch_spec.rb
hexx-suit-1.0.0 spec/tests/tasks/check/inch_spec.rb