From 8d93ecc5230917861d7a5d3495e049f3ddc10161 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Sun, 3 Jun 2018 15:03:36 +0300 Subject: fix tests --- spec/node_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/node_spec.rb b/spec/node_spec.rb index ba5b515..c7d28af 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -44,22 +44,22 @@ describe Oxidized::Node do it 'should record the success' do stub_oxidized_ssh - before_successes = @node.stats.get(:success_count) + before_successes = @node.stats.successes j = Oxidized::Job.new @node j.join @node.stats.add j - after_successes = @node.stats.get(:success_count) + after_successes = @node.stats.successes successes = after_successes - before_successes successes.must_equal 1 end it 'should record a failure' do stub_oxidized_ssh_fail - before_fails = @node.stats.get(:failure_count) + before_fails = @node.stats.failures j = Oxidized::Job.new @node j.join @node.stats.add j - after_fails = @node.stats.get(:failure_count) + after_fails = @node.stats.failures fails = after_fails - before_fails fails.must_equal 1 end -- cgit v1.2.1