spec/web/helpers/server.rb in ronin-web-0.1.1 vs spec/web/helpers/server.rb in ronin-web-0.1.2

- old
+ new

@@ -1,2 +1,10 @@ # Web Server root directory WEB_SERVER_ROOT = File.expand_path(File.join(File.dirname(__FILE__),'root')) + +def get_path(server,path) + server.route_path(path).last +end + +def get_url(server,url) + server.route(url).last +end