From 9abd85ef4709576bc57bcb7ae7c3c00383bfa303 Mon Sep 17 00:00:00 2001 From: MarioRuiz Date: Tue, 2 Apr 2019 11:26:24 +0000 Subject: [PATCH] test fixed --- nice_http.gemspec | 2 +- spec/nice_http/nice_http_stats_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nice_http.gemspec b/nice_http.gemspec index ce75352..d02a868 100644 --- a/nice_http.gemspec +++ b/nice_http.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'nice_http' - s.version = '1.7.5' + s.version = '1.7.6' s.summary = "NiceHttp -- simplest library for accessing and testing HTTP and REST resources." s.description = "NiceHttp -- simplest library for accessing and testing HTTP and REST resources. Manage different hosts on the fly. Easily get the value you want from the JSON strings. Use hashes on your requests." s.authors = ["Mario Ruiz"] diff --git a/spec/nice_http/nice_http_stats_spec.rb b/spec/nice_http/nice_http_stats_spec.rb index 3ec6592..870794f 100644 --- a/spec/nice_http/nice_http_stats_spec.rb +++ b/spec/nice_http/nice_http_stats_spec.rb @@ -180,7 +180,7 @@ klass.add_stats(:example, :correct, started, Time.now) expect(klass.stats[:specific][:example].keys).to eq ([:num, :time_elapsed, :correct]) expect(klass.stats[:specific][:example][:time_elapsed].keys).to eq ([:total, :maximum, :minimum, :average]) - expect(klass.stats[:specific][:example][:correct].keys).to eq ([:num, :time_elapsed]) + expect(klass.stats[:specific][:example][:correct].keys).to eq ([:num, :time_elapsed, :items]) expect(klass.stats[:specific][:example][:correct][:time_elapsed].keys).to eq ([:total, :maximum, :minimum, :average]) end end