Sha256: ee931ca20024a0362807d9f59eba1d9d8f300e757bcacfbeeaf661a8c6137db6
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 Bytes
Contents
shared_examples_for "component" do before( :all ) { Arachni::Options.reset } after( :all ) { framework.reset } def self.use_https before( :all ) { options.url.gsub!( 'http', 'https' ) } end def name self.class.description end def url @url ||= server_url_for( name ) + '/' rescue raise "Could not find server for '#{name}' component." end def framework @f ||= Arachni::Framework.new end def session framework.session end def http framework.http end def options framework.opts end def yaml_load( yaml ) YAML.load yaml.gsub( '__URL__', url ) end def run framework.run end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.1.3 | spec/shared/component.rb |
arachni-0.4.1.2 | spec/shared/component.rb |
arachni-0.4.1.1 | spec/shared/component.rb |
arachni-0.4.1 | spec/shared/component.rb |