Sha256: 1f87b10d25197d002a8893f122e083fc2c5160708739873d4de060fdd2225b50
Contents?: true
Size: 1.05 KB
Versions: 10
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe name_from_filename do include_examples 'plugin' before( :all ) do options.plugins[name] = { 'username_list' => fixtures_path + 'usernames.txt', 'password_list' => fixtures_path + 'passwords.txt', } end def results results_for( name_from_filename ) end context 'when given the right params' do it 'logins successfully' do options.url = web_server_url_for( name_from_filename ) run results.should == { 'username' => 'admin', 'password' => 'pass' } end end context 'when being unable to login' do it 'logs nothing' do options.url = web_server_url_for( "#{name_from_filename}_secure" ) run results.should be_nil end end context "when the page isn't protected" do it 'logs nothing' do options.url = web_server_url_for( "#{name_from_filename}_unprotected" ) run results.should be_nil end end end
Version data entries
10 entries across 10 versions & 1 rubygems