Sha256: 78fc2e8814e9e8f29786d09d6b2642da669087f8ab0106b2943405d0511dc6b6

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

# encoding: utf-8

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

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

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

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

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

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

    it "invokes check:pippi:display" do
      expect { subject }
        .to change { task_invoked? "check:pippi:display" }
        .to(true)
    end if USE_PIPPI_METRIC

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

Version data entries

3 entries across 3 versions & 1 rubygems

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