Sha256: d72cd5f19ed942b92c75ab834e135a673d7587a984ac1b698574d184c12dd2dd
Contents?: true
Size: 867 Bytes
Versions: 1
Compression:
Stored size: 867 Bytes
Contents
require_relative '../../../spec_helper' describe Arachni::Component::Options::Path do before( :all ) do @opt = Arachni::Component::Options::Path.new( '' ) end describe '#valid?' do context 'when the path exists' do it 'returns true' do @opt.valid?( __FILE__ ).should be_true end end context 'when the path does not exist' do it 'returns false' do @opt.valid?( __FILE__ + '22' ).should be_false end end context 'when required but empty' do it 'returns false' do @opt.class.new( '', [true] ).valid?( nil ).should be_false end end end describe '#type' do it 'returns the option type as a string' do @opt.type.should == 'path' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.2 | spec/arachni/component/options/path_spec.rb |