Sha256: 03e0c97610348a2d150463b3feda7c2eff1d78b9aa6a77e36577145a5190e97d

Contents?: true

Size: 687 Bytes

Versions: 10

Compression:

Stored size: 687 Bytes

Contents

require 'spec_helper'

describe Arachni::Component::Options::Address do
    include_examples 'component_option'

    describe '#valid?' do
        context 'when the value is valid' do
            it 'returns true' do
                described_class.new( '', value: 'localhost' ).should be_true
            end
        end

        context 'when the value is not valid' do
            it 'returns false' do
                described_class.new( '', value: 'stuff' ).valid?.should be_false
            end
        end
    end

    describe '#type' do
        it 'returns the option type as a string' do
            described_class.new( '' ).type.should == :address
        end
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/arachni/component/options/address_spec.rb
arachni-1.2 spec/arachni/component/options/address_spec.rb
arachni-1.1 spec/arachni/component/options/address_spec.rb
arachni-1.0.6 spec/arachni/component/options/address_spec.rb
arachni-1.0.5 spec/arachni/component/options/address_spec.rb
arachni-1.0.4 spec/arachni/component/options/address_spec.rb
arachni-1.0.3 spec/arachni/component/options/address_spec.rb
arachni-1.0.2 spec/arachni/component/options/address_spec.rb
arachni-1.0.1 spec/arachni/component/options/address_spec.rb
arachni-1.0 spec/arachni/component/options/address_spec.rb