Sha256: cdece2ab23d3ce56d2013c472798e873d6d43df63346eb79a89d4b113be499e8

Contents?: true

Size: 683 Bytes

Versions: 3

Compression:

Stored size: 683 Bytes

Contents

# encoding: utf-8

describe "Rake::Task['check:pippi:run']", :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(:metric) { Hexx::Suit::Metrics::Pippi }
  let(:task)   { Rake::Task["check:pippi:run"] }

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

    it "loads the metric" do
      expect(metric).to receive(:load)
      subject
    end

    it "runs tests" do
      expect { subject }.to change { commands.include? "rake test" }.to true
    end
  end

end if USE_PIPPI_METRIC

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 spec/tests/tasks/check/pippi/run_spec.rb
hexx-suit-0.2.1 spec/tests/tasks/check/pippi/run_spec.rb
hexx-suit-0.2.0 spec/tests/tasks/check/pippi/run_spec.rb