Sha256: 4dce2b7ae9ca7c0f33d03d0fa55c829fdfe2d37605d4a943ef46e84c084e6f7f
Contents?: true
Size: 731 Bytes
Versions: 11
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' describe Arachni::Component::Options::String do include_examples 'component_option' subject { described_class.new( '' ) } describe '#valid?' do it 'returns true' do ['test', 999, true].each do |value| subject.value = value expect(subject.valid?).to be_truthy end end end describe '#normalize' do it 'returns a string representation of the value' do subject.value = 'test' expect(subject.normalize).to eq('test') end end describe '#type' do it 'returns the option type as a string' do expect(subject.type).to eq(:string) end end end
Version data entries
11 entries across 11 versions & 1 rubygems