Sha256: c51e1b858c5994ea8baedfeffcf907c4f0889c4cefb2e91dd919785ee6e206e3

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

require 'test_helper'

describe Outpost::Report do
  it "should report up when all are up" do
    assert_equal :up, Outpost::Report.summarize([:up, :up, :up, :up])
  end

  it "should report down when mixed statuses" do
    assert_equal :down, Outpost::Report.summarize([:up, :down, :up, :up])
  end

  it "should report down when all are down" do
    assert_equal :down, Outpost::Report.summarize([:down, :down, :down])
  end

  it "should report down when there are no statuses" do
    assert_equal :down, Outpost::Report.summarize([])
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
outpost-0.2.0 test/outpost/report_test.rb
outpost-0.1.0 test/outpost/report_test.rb