From be4dc34f8ef1d462b1a633bd0f934ebf220bda9a Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 21 Sep 2014 23:02:39 +0900 Subject: [PATCH] Apply a correct fix for the flonum issue. --- spec/lib/location_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/lib/location_spec.rb b/spec/lib/location_spec.rb index 749f350a..ea42fa40 100644 --- a/spec/lib/location_spec.rb +++ b/spec/lib/location_spec.rb @@ -12,22 +12,22 @@ describe Location do it "converts values to Float" do expect(location.lat).to be_a Float - expect(location.lat).to be 2.0 + expect(location.lat).to eq 2.0 expect(location.lng).to be_a Float - expect(location.lng).to be 3.0 + expect(location.lng).to eq 3.0 expect(location.radius).to be_a Float - expect(location.radius).to be 300.0 + expect(location.radius).to eq 300.0 expect(location.speed).to be_a Float - expect(location.speed).to be 2.0 + expect(location.speed).to eq 2.0 expect(location.course).to be_a Float - expect(location.course).to be 30.0 + expect(location.course).to eq 30.0 end it "provides hash-style access to its properties with both symbol and string keys" do expect(location[:lat]).to be_a Float - expect(location[:lat]).to be 2.0 + expect(location[:lat]).to eq 2.0 expect(location['lat']).to be_a Float - expect(location['lat']).to be 2.0 + expect(location['lat']).to eq 2.0 end it "does not allow hash-style assignment" do