File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 2727#
2828
2929require_relative '../bin/check-mysql-replication-status'
30- # require_relative './spec_helper.rb'
30+ require_relative './spec_helper.rb'
3131
3232describe CheckMysqlReplicationStatus do
3333 let ( :checker ) { described_class . new }
Original file line number Diff line number Diff line change 1- require 'codeclimate-test-reporter'
2- CodeClimate ::TestReporter . start
1+ RSpec . configure do |c |
2+ # Sensu plugins run in the context of an at_exit handler. This prevents
3+ # code-under-test from being run at the end of the rspec suite.
4+ c . before ( :each ) do
5+ Sensu ::Plugin ::CLI . class_eval do
6+ # PluginStub
7+ class PluginStub
8+ def run ; end
9+
10+ def ok ( *) ; end
11+
12+ def warning ( *) ; end
13+
14+ def critical ( *) ; end
15+
16+ def unknown ( *) ; end
17+ end
18+ class_variable_set ( :@@autorun , PluginStub )
19+ end
20+ end
21+ end
You can’t perform that action at this time.
0 commit comments