spec/web/server_spec.rb in ronin-web-0.1.0 vs spec/web/server_spec.rb in ronin-web-0.1.1

- old
+ new

@@ -22,11 +22,11 @@ response('mapped') end file('/test/file.txt',File.join(WEB_SERVER_ROOT,'test.txt')) - mount('/test/mount/',WEB_SERVER_ROOT) + directory('/test/directory/',WEB_SERVER_ROOT) end @virtual_host = Web::Server.new do bind('/test/virtual_host.xml') do |env| response('<virtual/>', :content_type => 'text/xml') @@ -100,17 +100,17 @@ path = '/test/file.txt' @server.route_path(path).body.should == ["This is a test.\n"] end - it "should return files from mounted directories" do - path = '/test/mount/test.txt' + it "should return files from bound directories" do + path = '/test/directory/test.txt' @server.route_path(path).body.should == ["This is a test.\n"] end - it "should return the index file for a mounted directory" do - path = '/test/mount/' + it "should return the index file for a bound directory" do + path = '/test/directory/' @server.route_path(path).body.should == ["Index of files.\n"] end it "should match virtual hosts" do