Sha256: c24b2d4575cfbe711cb3915bbe736def094936efaa2fd8233866dabd5cf2d3c8
Contents?: true
Size: 727 Bytes
Versions: 10
Compression:
Stored size: 727 Bytes
Contents
require 'spec_helper' describe Arachni::Component::Options::Path do include_examples 'component_option' subject { described_class.new( '' ) } describe '#valid?' do context 'when the path exists' do it 'returns true' do subject.value = __FILE__ subject.valid?.should be_true end end context 'when the path does not exist' do it 'returns false' do subject.value = __FILE__ + '22' subject.valid?.should be_false end end end describe '#type' do it 'returns the option type as a string' do subject.type.should == :path end end end
Version data entries
10 entries across 10 versions & 1 rubygems