Files
metasploit-gs/spec/lib/rex/exploitation/js/network_spec.rb
T
2014-03-04 17:01:53 -06:00

24 lines
518 B
Ruby

require 'rex/exploitation/js'
describe Rex::Exploitation::Js::Network do
context "Class methods" do
context ".ajax_download" do
it "should load the ajax_download javascript" do
js = Rex::Exploitation::Js::Network.ajax_download
js.should =~ /function ajax_download/
end
end
context ".ajax_post" do
it "should load the postInfo javascript" do
js = Rex::Exploitation::Js::Network.ajax_post
js.should =~ /function postInfo/
end
end
end
end