Sha256: 423f53b926aabb37ee7213d16b437f2dd379ee072cbef41ee9765ac0086c6813
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' describe Arachni::OptionGroups::Paths do %w(root arachni components logs checks reporters plugins services path_extractors fingerprinters lib support mixins snapshots).each do |method| describe "##{method}" do it 'points to an existing directory' do File.exists?( subject.send method ).should be_true end end it { should respond_to method } it { should respond_to "#{method}=" } end describe '#logs' do context 'when the ARACHNI_FRAMEWORK_LOGDIR environment variable' do context 'has been set' do it 'returns its value' do ENV['ARACHNI_FRAMEWORK_LOGDIR'] = 'test' subject.logs.should == 'test/' end end context 'has not been set' do it 'returns the default location' do ENV['ARACHNI_FRAMEWORK_LOGDIR'] = nil subject.logs.should == "#{subject.root}logs/" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.0.2 | spec/arachni/option_groups/paths_spec.rb |
arachni-1.0.1 | spec/arachni/option_groups/paths_spec.rb |
arachni-1.0 | spec/arachni/option_groups/paths_spec.rb |