Sha256: d9be0a3534570d83a2491226abece7be4ab159efddd1ab1320113d789ff32f56
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' require 'helpers/examples' require 'yard-dm-is-predefined/predefine_handler' require 'yard-dm-is-predefined/legacy/predefine_handler' describe "PredefineHandler" do include Helpers::Examples describe "valid" do before(:all) do parse_file :simple_model end it "should register a class reader method for a predefine" do yard('SimpleModel.x').should be_instance_of(CodeObjects::MethodObject) end end describe "invalid" do before(:all) do parse_file :bad_model end it "should not register class reader methods for variables" do yard('BadModel.x').should be_nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-dm-is-predefined-0.2.0 | spec/predefine_handler_spec.rb |