Sha256: 93a29e8f0ea222d73baa3f199c0308b115f686538de1bce06efe6f15c4a365ce
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
require 'spec_helper' module MockModuleToInclude def self.included(dsl) end end describe ActiveAdmin::DSL, "#include" do let(:dsl){ ActiveAdmin::DSL.new(mock) } it "should call the included class method on the module that is included" do MockModuleToInclude.should_receive(:included).with(dsl) dsl.run_registration_block do include MockModuleToInclude end end end
Version data entries
4 entries across 4 versions & 1 rubygems