spec/lib/plugins/apache_spec.rb in zabbix-ruby-client-0.0.20 vs spec/lib/plugins/apache_spec.rb in zabbix-ruby-client-0.0.21

- old
+ new

@@ -77,10 +77,10 @@ end it "collects data properly" do stub_request(:get, '127.0.0.1:80/server-status?auto'). to_return({ :body => @data }) - Time.stub(:now).and_return("123456789") + allow(Time).to receive(:now).and_return("123456789") data = ZabbixRubyClient::Plugins::Apache.send(:collect, 'local') expect(data).to eq @expected_data end end