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