module CLIHelpers
Public Class Methods
included(by)
click to toggle source
# File spec/spec_helper.rb, line 11 def self.included(by) by.class_eval do require 'stringio' let(:stderr) { StringIO.new } let(:stdout) { StringIO.new } let(:perform) { Routemaster::CLI::Toplevel.new(stdout: stdout, stderr: stderr).run(argv) } let(:client) { Routemaster::Client } end end
Public Instance Methods
allow_bus_pulse(host, token)
click to toggle source
# File spec/spec_helper.rb, line 22 def allow_bus_pulse(host, token) stub_request(:get, %r{^https://#{Regexp.escape host}/pulse$}). with(basic_auth: [token, 'x']). to_return(status: 204) end