PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1require 'rex/exploitation/js'
 2
 3describe Rex::Exploitation::Js::Network do
 4
 5  context "Class methods" do
 6
 7    context ".ajax_download" do
 8      it "should load the ajax_download javascript" do
 9        js = Rex::Exploitation::Js::Network.ajax_download
10        js.should =~ /function ajax_download/
11      end
12    end
13
14    context ".ajax_post" do
15      it "should load the postInfo javascript" do
16        js = Rex::Exploitation::Js::Network.ajax_post
17        js.should =~ /function postInfo/
18      end
19    end
20
21  end
22
23end