D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
fluentd-ui-0.4.4
/
spec
/
support
/
Filename :
stub_daemon.rb
back
Copy
module StubDaemon shared_context 'stub daemon', stub: :daemon do let!(:exists_user) { build(:user) } let!(:daemon) { build(:fluentd, variant: "td-agent") } before do Fluentd.stub(:instance).and_return(daemon) Fluentd::Agent::TdAgent.any_instance.stub(:detached_command).and_return(true) daemon.agent.config_write "" end end end