Skip to content

Commit 8833429

Browse files
David MaloneyDavid Maloney
authored andcommitted
make shared example usage more readable
this seems less obtuse
1 parent 818bd19 commit 8833429

File tree

17 files changed

+21
-22
lines changed

17 files changed

+21
-22
lines changed

spec/lib/metasploit/framework/login_scanner/afp_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
subject(:scanner) { described_class.new }
88

9-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', false, false
9+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: false, has_default_realm: false
1010
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
1111

1212
it { should respond_to :login_timeout }

spec/lib/metasploit/framework/login_scanner/axis2_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
describe Metasploit::Framework::LoginScanner::Axis2 do
66

7-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', true, false
7+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: true, has_default_realm: false
88
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
99
it_behaves_like 'Metasploit::Framework::LoginScanner::HTTP'
1010

spec/lib/metasploit/framework/login_scanner/db2_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
subject(:login_scanner) { described_class.new }
1111

12-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', true, true
12+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: true, has_default_realm: true
1313
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
1414

1515
context '#attempt_login' do

spec/lib/metasploit/framework/login_scanner/ftp_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
described_class.new
4646
}
4747

48-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', false, false
48+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: false, has_default_realm: false
4949
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
5050

5151

spec/lib/metasploit/framework/login_scanner/http_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
describe Metasploit::Framework::LoginScanner::HTTP do
66

7-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', true, false
7+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: true, has_default_realm: false
88
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
99
it_behaves_like 'Metasploit::Framework::LoginScanner::HTTP'
1010

spec/lib/metasploit/framework/login_scanner/mssql_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
subject(:login_scanner) { described_class.new }
3434

35-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', true, true
35+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: true, has_default_realm: true
3636
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
3737
it_behaves_like 'Metasploit::Framework::LoginScanner::NTLM'
3838

spec/lib/metasploit/framework/login_scanner/mysql_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
subject(:login_scanner) { described_class.new }
3232

33-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', false, false
33+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: false, has_default_realm: false
3434
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
3535

3636
context '#attempt_login' do

spec/lib/metasploit/framework/login_scanner/pop3_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
describe Metasploit::Framework::LoginScanner::POP3 do
55
subject(:scanner) { described_class.new }
66

7-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', false, false
7+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: false, has_default_realm: false
88
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
99

1010
context "#attempt_login" do

spec/lib/metasploit/framework/login_scanner/postgres_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
subject(:login_scanner) { described_class.new }
2727

28-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', true, true
28+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: true, has_default_realm: true
2929

3030
context '#attempt_login' do
3131
context 'when the login is successful' do

spec/lib/metasploit/framework/login_scanner/smb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
subject(:login_scanner) { described_class.new }
3434

35-
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', true, true
35+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: true, has_default_realm: true
3636
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
3737
it_behaves_like 'Metasploit::Framework::LoginScanner::NTLM'
3838

0 commit comments

Comments
 (0)