Skip to content

Commit ef59d88

Browse files
committed
Fix spec failure due to workspace mismatch
Also fixes intermittent failure from FactoryGirl picking a heinous Origin type.
1 parent 1ee32b3 commit ef59d88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
priv = FactoryGirl.create(:metasploit_credential_password, data: password)
2828
pub = FactoryGirl.create(:metasploit_credential_public, username: username)
2929
core = FactoryGirl.create(:metasploit_credential_core,
30+
origin: FactoryGirl.create(:metasploit_credential_origin_import),
3031
private: priv,
3132
public: pub,
3233
realm: nil,
33-
workspace: Mdm::Workspace.last)
34+
workspace: framework.db.workspace)
3435
end
3536
it "should not add a Core" do
3637
expect {

0 commit comments

Comments
 (0)