Sha256: 2761f0328b5e061c36c91c608ee5f9a5286098417f0e53ee4d1a50fe7de9fa1a
Contents?: true
Size: 261 Bytes
Versions: 3
Compression:
Stored size: 261 Bytes
Contents
require 'spec_helper' describe Datagrid::Filters do it "should support default option as proc" do test_report do scope {Entry} filter(:created_at, :date, :default => proc { Date.today } ) end.created_at.should == Date.today end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datagrid-0.2.0 | spec/datagrid/filters_spec.rb |
datagrid-0.1.2 | spec/datagrid/filters_spec.rb |
datagrid-0.1.1 | spec/datagrid/filters_spec.rb |