Sha256: 355ef9c8669b8d0e80a0ce345200ac32647f2476ebf46cd1278f84fc7e35c030

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

# encoding: utf-8

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

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

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

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

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

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hexx-suit-0.1.0 spec/tests/tasks/check_spec.rb
hexx-suit-0.0.1 spec/tests/tasks/check_spec.rb