Sha256: c887b019e9c22be78456ce880495f32319571115f8f693d7e2581184b66ecd14
Contents?: true
Size: 982 Bytes
Versions: 3
Compression:
Stored size: 982 Bytes
Contents
require 'spec_helper' describe PuppetDocLint::DocRunner do file = 'spec/manifests/define_rdoc.pp' subject { setup(file) } it 'result should be an array of PuppetDocLint::Result' do subject.class.should be(Array) subject[0].class.should be(PuppetDocLint::Result) end it 'file name should be defined' do subject[0].file_name.should eql 'spec/manifests/define_rdoc.pp' end it 'class should be define_rdoc ' do subject[0].class_name.should eql 'define_rdoc' end it 'all parameters should be defined' do subject[0].parameters.should eql ["param_one", "param_two", "param_three", "param_four"] end it 'no documentation is nil' do subject[0].no_documentation.should be_false end it 'documented parameters' do subject[0].documented_parameters.should eql ["param_one"] end it 'undocumented_parameters parameters' do subject[0].undocumented_parameters.should eql ["param_two", "param_three", "param_four"] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-doc-lint-0.1.1 | spec/runner_results_spec.rb |
puppet-doc-lint-0.1.0 | spec/runner_results_spec.rb |
puppet-doc-lint-0.0.1 | spec/runner_results_spec.rb |