Sha256: 8960fb18073b26f73e5921c93dd81433be5712b3e4b3460ed9509171ce0ab126
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require 'spec_helper' module ExampleMod def mod; :mod; end end describe Uninclude do let(:klass) { Class.new do end } let(:instance) { klass.new } describe '.uninclude' do it 'should uninclude module' do klass.class_eval { include ExampleMod } instance.should respond_to(:mod) klass.class_eval { uninclude ExampleMod } instance.should_not respond_to(:mod) end end describe '#unextend' do it 'should unextend module' do instance.extend(ExampleMod) instance.should respond_to(:mod) instance.unextend(ExampleMod) instance.should_not respond_to(:mod) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uninclude-1.0.0 | spec/uninclude_spec.rb |