Sha256: c758e6efbd3d2608f10a3720710ad6d98539a96beeb15a22b55563a334e1d166

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

# encoding: utf-8

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

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

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

    it "invokes check:pippi:display" do
      expect { subject }
        .to change { task_invoked? "check:pippi:display" }
        .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/pippi_spec.rb
hexx-suit-0.0.1 spec/tests/tasks/check/pippi_spec.rb