spec/handlers/constant_handler_spec.rb in yard-0.2.3.3 vs spec/handlers/constant_handler_spec.rb in yard-0.2.3.4
- old
+ new
@@ -1,8 +1,8 @@
require File.dirname(__FILE__) + '/spec_helper'
describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}ConstantHandler" do
- before { parse_file :constant_handler_001, __FILE__ }
+ before(:all) { parse_file :constant_handler_001, __FILE__ }
it "should not parse constants inside methods" do
Registry.at("A::B::SOMECONSTANT").source.should == "SOMECONSTANT= \"hello\""
end
\ No newline at end of file