mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Apply a correct fix for the flonum issue.
This commit is contained in:
parent
10adab94db
commit
be4dc34f8e
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue