Sha256: fc4e9ab0524a5d754ae04fe666eece1271280516cd01b3fba836f33789e9ea03

Contents?: true

Size: 367 Bytes

Versions: 22

Compression:

Stored size: 367 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fluentd-ui-1.0.0.beta.1 spec/support/stub_daemon.rb
fluentd-ui-1.0.0.alpha.3 spec/support/stub_daemon.rb
fluentd-ui-1.0.0.alpha.2 spec/support/stub_daemon.rb
fluentd-ui-1.0.0.alpha.1 spec/support/stub_daemon.rb
fluentd-ui-0.4.5 spec/support/stub_daemon.rb
fluentd-ui-0.4.4 spec/support/stub_daemon.rb
fluentd-ui-0.4.3 spec/support/stub_daemon.rb
fluentd-ui-0.4.2 spec/support/stub_daemon.rb
fluentd-ui-0.4.1 spec/support/stub_daemon.rb
fluentd-ui-0.4.0 spec/support/stub_daemon.rb
fluentd-ui-0.3.21 spec/support/stub_daemon.rb
fluentd-ui-0.3.20 spec/support/stub_daemon.rb
fluentd-ui-0.3.19 spec/support/stub_daemon.rb
fluentd-ui-0.3.18 spec/support/stub_daemon.rb
fluentd-ui-0.3.17 spec/support/stub_daemon.rb
fluentd-ui-0.3.16 spec/support/stub_daemon.rb
fluentd-ui-0.3.15 spec/support/stub_daemon.rb
fluentd-ui-0.3.14 spec/support/stub_daemon.rb
fluentd-ui-0.3.13 spec/support/stub_daemon.rb
fluentd-ui-0.3.12 spec/support/stub_daemon.rb