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-1.2.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.1.2 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.1.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.1.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.0.5 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.0.4 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.0.3 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.0.2 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.0.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-1.0.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.9.3 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.9.2 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.9.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.8.4 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.8.3 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.8.2 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.8.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.8.0 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.7.1 spec/datagrid/filters/float_filter_spec.rb
datagrid-0.7.0 spec/datagrid/filters/float_filter_spec.rb