Sha256: 6bc7dd658fef5154c58388efaf3d8c907426dddf92c4541603da7fb2e19775af

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

require 'spec_helper'

describe EventedBluepill::ProcessConditions::AlwaysTrue do
  before do
    @condition = EventedBluepill::ProcessConditions::AlwaysTrue.new 'name', stub(:actual_pid => 0)
  end

  describe "#run" do
    it "must return 1" do
      @condition.run.must_equal 1
    end
  end

  describe "#check" do
    it "must return true" do
      @condition.check(0).must_equal true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
evented_bluepill-0.0.52 spec/always_true_spec.rb
evented_bluepill-0.0.51 spec/always_true_spec.rb
evented_bluepill-0.0.50 spec/always_true_spec.rb