Fix spec failure due to workspace mismatch
Also fixes intermittent failure from FactoryGirl picking a heinous Origin type.bug/bundler_fix
parent
1ee32b3b98
commit
ef59d88f64
|
@ -27,10 +27,11 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
|
|||
priv = FactoryGirl.create(:metasploit_credential_password, data: password)
|
||||
pub = FactoryGirl.create(:metasploit_credential_public, username: username)
|
||||
core = FactoryGirl.create(:metasploit_credential_core,
|
||||
origin: FactoryGirl.create(:metasploit_credential_origin_import),
|
||||
private: priv,
|
||||
public: pub,
|
||||
realm: nil,
|
||||
workspace: Mdm::Workspace.last)
|
||||
workspace: framework.db.workspace)
|
||||
end
|
||||
it "should not add a Core" do
|
||||
expect {
|
||||
|
|
Loading…
Reference in New Issue