Sha256: 7ff6338503c72ffb0738000c311e344ed3153ed75ac04dfe9cce2a8fdc0f2b8f

Contents?: true

Size: 385 Bytes

Versions: 29

Compression:

Stored size: 385 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
    expect(report.assets).to include(g1)
    expect(report.assets).not_to include(g2)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
datagrid-1.6.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.6.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.9 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.8 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.7 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.6 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.5 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.4 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.3 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.2 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.5.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.4.4 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.4.3 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.4.2 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.4.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.4.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.3.9 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.3.7 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.3.6 spec/datagrid/filters/float_filter_spec.rb