Skip to content

Commit

Permalink
removing user_id from the origin tests and only adding it to the orig…
Browse files Browse the repository at this point in the history
…in that needs it
  • Loading branch information
Lance Sanchez committed Sep 30, 2016
1 parent cceed1b commit 3a50ec4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/lib/metasploit/credential/creation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import: {
filename: FactoryGirl.generate(:metasploit_credential_origin_import_filename)
},
manual: {},
manual: {user_id: user.id},
service: {
module_fullname: "exploit/" + FactoryGirl.generate(:metasploit_credential_origin_service_reference_name),
address: service.host.address,
Expand All @@ -52,7 +52,6 @@
}}
let(:credential_data) {{
workspace_id: workspace.id,
user_id: user.id,
origin_type: origin_type,
username: 'admin',
private_data: 'password',
Expand Down Expand Up @@ -196,7 +195,7 @@
import: {
filename: FactoryGirl.generate(:metasploit_credential_origin_import_filename)
},
manual: {},
manual: {user_id: user.id},
service: {
module_fullname: "exploit/" + FactoryGirl.generate(:metasploit_credential_origin_service_reference_name),
address: service.host.address,
Expand All @@ -211,7 +210,6 @@
}}
let(:login_data) {{
workspace_id: workspace.id,
user_id: user.id,
origin_type: origin_type,
username: 'admin',
private_data: 'password',
Expand Down

0 comments on commit 3a50ec4

Please sign in to comment.