Sha256: 228a6ab9f8d22264ad01b42039193c31aefbe4866221ce70b789d33af1ef5013

Contents?: true

Size: 612 Bytes

Versions: 25

Compression:

Stored size: 612 Bytes

Contents

require 'rails_helper'

module ActiveAdmin
  describe Resource, "Includes" do
    describe "#includes" do

      let(:application) { ActiveAdmin::Application.new }
      let(:namespace) { ActiveAdmin::Namespace.new application, :admin }
      let(:resource_config) { ActiveAdmin::Resource.new namespace, Post }
      let(:dsl){ ActiveAdmin::ResourceDSL.new(resource_config, Post) }

      it "should register the includes in the config" do
        dsl.run_registration_block do
          includes :taggings, :author
        end
        expect(resource_config.includes.size).to eq(2)
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/resource/includes_spec.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.17.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.16.pre spec/unit/resource/includes_spec.rb
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/resource/includes_spec.rb
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/resource/includes_spec.rb
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.15.pre spec/unit/resource/includes_spec.rb
activeadmin-orac-1.0.0.pre4 spec/unit/resource/includes_spec.rb
activeadmin-orac-1.0.0 spec/unit/resource/includes_spec.rb
activeadmin-orac-1.0.0.pre.orac spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.14.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.13.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.12.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.11.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.10.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.9.pre spec/unit/resource/includes_spec.rb
yousty-activeadmin-1.0.8.pre spec/unit/resource/includes_spec.rb
activeadmin-1.0.0.pre4 spec/unit/resource/includes_spec.rb
activeadmin-1.0.0.pre3 spec/unit/resource/includes_spec.rb