/spec/lib/rex/exploitation/js/network_spec.rb
https://github.com/debbiemezyene/metasploit-framework · Ruby · 23 lines · 17 code · 6 blank · 0 comment · 0 complexity · a31d91bc65a855871f8be3dcb44c9287 MD5 · raw file
- 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