Sha256: 4bd36788722d7f403e402ea9a79ee150633a899edece00236851f8a8a1aec945
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
require_relative '../../../spec_helper' describe Arachni::Component::Options::Address do before( :all ) do @opt = Arachni::Component::Options::Address end describe '#valid?' do context 'when the value is valid' do it 'returns true' do @opt.new( '' ).valid?( 'localhost' ).should be_true end end context 'when the value is not valid' do it 'returns false' do @opt.new( '', [ true ] ).valid?( '' ).should be_false end end context 'when required but empty' do it 'returns false' do @opt.new( '', [true] ).valid?( nil ).should be_false end end end describe '#type' do it 'returns the option type as a string' do @opt.new( '' ).type.should == 'address' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.2 | spec/arachni/component/options/address_spec.rb |