Sha256: ed09ccc55949fa140a5d1ff96e2c6dc3c5a00725d9b0b96811b68299ff0236f9
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}VisibilityHandler" do before { parse_file :visibility_handler_001, __FILE__ } it "should be able to set visibility to public" do Registry.at("Testing#pub").visibility.should == :public Registry.at("Testing#pub2").visibility.should == :public end it "should be able to set visibility to private" do Registry.at("Testing#priv").visibility.should == :private end it "should be able to set visibility to protected" do Registry.at("Testing#prot").visibility.should == :protected end it "should support parameters and only set visibility on those methods" do Registry['Testing#notpriv'].visibility.should == :protected Registry['Testing#notpriv2'].visibility.should == :protected Registry['Testing#notpriv?'].visibility.should == :protected end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-0.2.3.2 | spec/handlers/visibility_handler_spec.rb |
yard-0.2.3.3 | spec/handlers/visibility_handler_spec.rb |
yard-0.2.3 | spec/handlers/visibility_handler_spec.rb |