Sha256: 7eda4d6aadd5984eefe9657dd72551542ba88a39aaafc05f34d2a2b875c2875a

Contents?: true

Size: 377 Bytes

Versions: 23

Compression:

Stored size: 377 Bytes

Contents

require 'spec_helper'

describe Datagrid::Filters::FloatFilter do
  
  it "should support float values" do
    g1 = Group.create!(:rating => 1.5)
    g2 = Group.create!(:rating => 1.6)
    report = test_report(:rating => 1.5) do
      scope { Group }
      filter(:rating, :float)
    end
    report.assets.should include(g1)
    report.assets.should_not include(g2)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
datagrid-0.6.4 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.6.3 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.6.2 spec/datagrid/filters/float_filter_spec.rb