24 lines
518 B
Ruby
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
|