Sha256: 59bbf2febdb21abbfacb628756f2a27d86293ba5487851987aaef236297d6a2a
Contents?: true
Size: 636 Bytes
Versions: 14
Compression:
Stored size: 636 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}ExtendHandler" do before(:all) { parse_file :extend_handler_001, __FILE__ } it "should include modules at class scope" do Registry.at(:B).class_mixins.should == [P(:A)] Registry.at(:B).instance_mixins.should be_empty end it "should handle a module extending itself" do Registry.at(:C).class_mixins.should == [P(:C)] Registry.at(:C).instance_mixins.should be_empty end it "should extend module with correct namespace" do Registry.at('Q::R::S').class_mixins.first.path.should == 'A' end end
Version data entries
14 entries across 14 versions & 1 rubygems