Skip to content

Commit ccc5bbd

Browse files
David MaloneyDavid Maloney
authored andcommitted
this spec needs to use the username factory
:metasploit-credential_public factory will randomly return either a Username or BlankUsername and thus is not appropriate for when you want tos et an explicit Username. The :metasploit_credential_username factory should be used for this instead MSP-11609
1 parent f081ede commit ccc5bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/lib/msf/ui/command_dispatcher/db_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
context "when a core already exists" do
2626
before(:each) do
2727
priv = FactoryGirl.create(:metasploit_credential_password, data: password)
28-
pub = FactoryGirl.create(:metasploit_credential_public, username: username)
28+
pub = FactoryGirl.create(:metasploit_credential_username, username: username)
2929
core = FactoryGirl.create(:metasploit_credential_core,
3030
origin: FactoryGirl.create(:metasploit_credential_origin_import),
3131
private: priv,

0 commit comments

Comments
 (0)