Closed justin808 closed 10 years ago
Sure, that seems reasonable, we already special case Time
and DateTime
. (Your example is out of date). Please note you'll need a defined?(BigDecimal)
check, as we won't require it for people.
@JonRowe What is the correct branch to base this on? I'll implement similar to Time
and DateTime
.
Always master
.
And then will we merge this to 2-14-maintenance? Or should I update the rspec my rails app is using?
No, this is a new feature, it will only go into RSpec 3.x
@JonRowe this can be closed.
I can monkey patch BigDecimal to get clear error messages, but maybe we can just change rspec/matchers/built_in/eq.rb to support special inspect?
I'm supposing we'd want some generalized way of checking if there's a helper for the value of
expected
to do a better to_s than inspect.If there's interest, I'll submit a PR.