Sha256: 5428ce3acb1cb774c0d3f93c130ab96f50e50e50a9a264c54378f68201b8833f

Contents?: true

Size: 288 Bytes

Versions: 11

Compression:

Stored size: 288 Bytes

Contents

require 'spec_helper'

describe Datagrid::Core do
  
  it "should support change scope on the fly" do
    report = test_report do
      scope { Entry }
    end
    report.scope do
      Entry.limit(1)
    end
    2.times { Entry.create }
    report.assets.to_a.size.should == 1
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
datagrid-0.9.0 spec/datagrid/core_spec.rb
datagrid-0.8.4 spec/datagrid/core_spec.rb
datagrid-0.8.3 spec/datagrid/core_spec.rb
datagrid-0.8.2 spec/datagrid/core_spec.rb
datagrid-0.8.1 spec/datagrid/core_spec.rb
datagrid-0.8.0 spec/datagrid/core_spec.rb
datagrid-0.7.1 spec/datagrid/core_spec.rb
datagrid-0.7.0 spec/datagrid/core_spec.rb
datagrid-0.6.4 spec/datagrid/core_spec.rb
datagrid-0.6.3 spec/datagrid/core_spec.rb
datagrid-0.6.2 spec/datagrid/core_spec.rb