Sha256: f215c980811396a995bfa2c41db96e53b6f16135d5a5de656da05179063dba36
Contents?: true
Size: 702 Bytes
Versions: 22
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe 'dashboard' do let!(:exists_user) { build(:user) } before { login_with exists_user } context 'no configuration' do before { visit '/' } it do page.should_not have_css(".fluentd-status") end end context 'fluentd is stop', stub: :daemon do before { visit '/' } it do page.should have_css(".fluentd-status .stopped") end end context 'fluentd is running', stub: :daemon do before do # XXX i have no idea to not use stub... Fluentd::Agent::TdAgent.any_instance.stub(:running?).and_return(true) visit '/' end it do page.should have_css(".fluentd-status .running") end end end
Version data entries
22 entries across 22 versions & 1 rubygems