Sha256: 21039d0f0469e61e896fae825d33b8505b8962ea9f6ec2b743af1fbef4beb3e1
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
require_relative '../../spec_helper' describe Arachni::Element::Header do it_should_behave_like 'auditable', url: server_url_for( :header ), single_input: true before( :all ) do @url = server_url_for( :header ) @inputs = { 'My-header' => 'header_value' } @header = Arachni::Element::Header.new( @url, @inputs ) end it 'is be assigned to Arachni::Header for easy access' do Arachni::Header.should == Arachni::Element::Header end describe 'Arachni::Element::HEADER' do it 'returns "header"' do Arachni::Element::HEADER.should == 'header' end end it 'retains its assigned inputs' do @header.auditable.should == @inputs end describe '#simple' do it 'returns the inputs as is' do @header.simple.should == @inputs end end describe '#mutations' do describe :param_flip do it 'creates a new header' do @header.mutations( 'seed', param_flip: true ).last.auditable.keys.should == %w(seed) end end end describe '#type' do it 'is "header"' do @header.type.should == 'header' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.2 | spec/arachni/element/header_spec.rb |