Sha256: 1008b642791d86a9a93ef2898a7967e5f934449486d2690edd4c361491b2f3e0
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe YARD::Handlers::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-0.2.2 | spec/handlers/constant_handler_spec.rb |