Sha256: 9a10b2cd3ac74ce02d1fd9ca89f68cf36ef651a232042c132eef46205fff514a

Contents?: true

Size: 780 Bytes

Versions: 24

Compression:

Stored size: 780 Bytes

Contents

require 'spec_helper'

describe Rearview::MonitorTask do

  before do
    # Celluloid.shutdown
    # Celluloid.boot
    # @task = Rearview::MonitorTask.new(create(:job),false)
  end

  context "run" do
    it "should gracefully handle no result from monitor runner" do
      pending "figure out how to test this..."
      # Rearview::MonitorRunner.stubs(:run).returns(nil)
      # @task.expects(:schedule).once
      # @task.run
    end
    it "only sends alerts if results are not success" do
      pending "figure out how to test this..."
      # Rearview::MonitorRunner.stubs(:run).returns(nil)
      # @task.stubs(:process_results).returns("success")
      # @task.stubs(:schedule).returns(true)
      # @task.expects(:send_alerts).never
      # @task.run
    end
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.2.2.rc.2-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.2.2.rc.1-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.2.1-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.2.0-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.1.2-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.1.1-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.1.0-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.3.rc.4-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.3.rc.3-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.3.rc.2-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.3.rc.1-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.2-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.2.rc.4-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.2.rc.3-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.2.rc.2-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.2.rc.1-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.1-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.0-jruby spec/lib/rearview/monitor_task_spec.rb
rearview-1.0.0.rc5-jruby spec/lib/rearview/monitor_task_spec.rb