Sha256: 047819b8449dfbf0cf67a725e7331a7ce42954b18e86e5b9f4bfd231a7b05465

Contents?: true

Size: 199 Bytes

Versions: 12

Compression:

Stored size: 199 Bytes

Contents

# sqlite uses Float instead of BigDecimal, this extension to Float class ensures the seralized
# objects match the test data in specs.

class Float
  def as_json(options={})
    super&.to_s
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_reporter-0.6.5 spec/support/float.rb
active_reporter-0.6.4 spec/support/float.rb
active_reporter-0.6.3 spec/support/float.rb
active_reporter-0.6.2 spec/support/float.rb
active_reporter-0.6.1 spec/support/float.rb
active_reporter-0.6.0 spec/support/float.rb
active_reporter-0.5.13 spec/support/float.rb
active_reporter-0.5.12 spec/support/float.rb
active_reporter-0.5.11 spec/support/float.rb
active_reporter-0.5.10 spec/support/float.rb
active_reporter-0.5.9 spec/support/float.rb
active_reporter-0.5.8 spec/support/float.rb