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