Sha256: 3a8cfae91af246aa94f32471d58731e900006b849f6a41e04539b30731d820f7

Contents?: true

Size: 965 Bytes

Versions: 1

Compression:

Stored size: 965 Bytes

Contents

require "spec_helper"
require "blinkenstein/monitors/eve_skill_queue_monitor"

module Blinkenstein
  describe EveSkillQueueMonitor do
    let(:monitor) { EveSkillQueueMonitor.new }

    describe "refresh" do
      it "goes into error mode if queue left is < 0" do
        monitor.stub(:hours_left).and_return(-1)
        monitor.should_receive(:error)
        monitor.refresh
      end

      it "is cool if the skill queue is longer than 24h" do
        monitor.stub(:hours_left).and_return(25)
        monitor.should_receive(:cool)
        monitor.refresh
      end

      it "is nervous if the skill queue is between 9h and 24h long" do
        monitor.stub(:hours_left).and_return(9)
        monitor.should_receive(:nervous)
        monitor.refresh
      end

      it "is panicing if the skill queue is below 8h long" do
        monitor.stub(:hours_left).and_return(0)
        monitor.should_receive(:panic)
        monitor.refresh
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blinkenstein-0.2.0 spec/blinkenstein/monitors/eve_skill_queue_monitor_spec.rb