There is a method which result I want to check:
result.should == [1.0,2.0,3.0]
But I get an error:
expected: [1.0, 2.0, 3.
Use:
.should be_close
Or even:
.should be_within
Ref here http://rubydoc.info/gems/rspec-expectations/2.4.0/RSpec/Matchers