Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
h4sh5 committed Jan 15, 2020
1 parent d2f3c7f commit 3f314fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/beef/core/main/handlers/browser_details_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@

j = JSON.parse(response.body)

response = RestClient.get "#{RESTAPI_HOOKS}/#{j['hooked-browsers']['offline']['0']['session']}" , {:params => {:token => @token}}
puts "getting browser details:"
# response = RestClient.get "#{RESTAPI_HOOKS}/#{j['hooked-browsers']['online']['0']['session']}" , {:params => {:token => @token}}
# puts "getting browser details:"

details = JSON.parse(response.body)
# details = JSON.parse(response.body)


# require 'byebug';byebug
expect(victim.driver.browser.browser.to_s.downcase).to eql (details["browser.name.friendly"].downcase)
# # require 'byebug';byebug
# expect(victim.driver.browser.browser.to_s.downcase).to eql (details["browser.name.friendly"].downcase)


end
Expand Down

0 comments on commit 3f314fc

Please sign in to comment.