Sha256: 1af537be86686043da9b226981dced3589857243753bfa4f43a0a7c148e4ccb1
Contents?: true
Size: 715 Bytes
Versions: 10
Compression:
Stored size: 715 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 subject.valid?.should be_true end end end describe '#normalize' do it 'returns a string representation of the value' do subject.value = 'test' subject.normalize.should == 'test' end end describe '#type' do it 'returns the option type as a string' do subject.type.should == :string end end end
Version data entries
10 entries across 10 versions & 1 rubygems