Fix spec failure due to workspace mismatch

Also fixes intermittent failure from FactoryGirl picking a heinous
Origin type.
bug/bundler_fix
James Lee 2014-07-30 11:26:35 -05:00
parent 1ee32b3b98
commit ef59d88f64
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 2 additions and 1 deletions

View File

@ -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 {