Sha256: 986857095890f5d89f93d7f706088fd9a673d94510662dd824525480298182cb
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}ConstantHandler" do before { parse_file :constant_handler_001, __FILE__ } it "should not parse constants inside methods" do Registry.at("A::B::SOMECONSTANT").source.should == "SOMECONSTANT= \"hello\"" end it "should only parse valid constants" do Registry.at("A::B::notaconstant").should be_nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-0.2.3.2 | spec/handlers/constant_handler_spec.rb |
yard-0.2.3.3 | spec/handlers/constant_handler_spec.rb |
yard-0.2.3 | spec/handlers/constant_handler_spec.rb |