Sha256: 6fce3acca9f1adb4b159eaece0b3bec89eb252960b34a09f59d47425209e8db5
Contents?: true
Size: 932 Bytes
Versions: 2
Compression:
Stored size: 932 Bytes
Contents
require 'spec_helper' include ActiveAdmin module ActiveAdmin module Axlsx describe Resource do before { load_defaults! } let(:application){ ActiveAdmin::Application.new } let(:namespace){ Namespace.new(application, :admin) } def config(options = {}) @config ||= Resource.new(namespace, Category, options) end describe "#xlsx_builder" do context "when no xlsx_builder set" do it "should return a default xlsx_builder with id and content columns" do config.xlsx_builder.columns.size.should == Category.content_columns.size + 1 end end context "when xslx_builder set" do it "should return the xlsx_builder we set" do xlsx_builder = Builder.new config.xlsx_builder = xlsx_builder config.xlsx_builder.should == xlsx_builder end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-axlsx-1.0.0 | spec/axlsx/unit/resource_spec.rb |
activeadmin-axlsx-1.0.0a | spec/axlsx/unit/resource_spec.rb |