Sha256: 4bff624cfa3516fdacc3fcb4bdc8377af84722bb9acd7b4dcf54a56b52fc0ab0

Contents?: true

Size: 252 Bytes

Versions: 12

Compression:

Stored size: 252 Bytes

Contents

require 'spec_helper'

describe Datagrid::Drivers::ActiveRecord do

  describe ".match?" do
    subject { described_class }

    it {should be_match(Entry)}
    it {should be_match(Entry.scoped)}
    it {should_not be_match(MongoidEntry)}
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datagrid-0.7.0 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.6.4 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.6.3 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.6.2 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.6.0 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.5.4 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.5.3 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.5.2 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.5.1 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.5.0 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.4.1 spec/datagrid/drivers/active_record_spec.rb
datagrid-0.4.0 spec/datagrid/drivers/active_record_spec.rb