Sha256: 0dea0b95a07f238203a522467f7f8f6d9c0f5aeefebc7a945c04b4c75bbf082e

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

require 'proxy_testing.rb'

describe "Wiki" do
  it "should run on a global web server if not http-port is specified" do
    b=TestBed.new({})
    #b.run("UdpNetwork")
    ns=b.run("NameService")
    b.run("GlobalWebServer")
    sleep 0.2
    wiki=b.run("Wiki",{:instances=>["MyWiki"]})
    wiki.port.should be_nil
    proxy=b.run("GlobalWebProxy")
    sa=wiki.serviceAddress("MyWiki","")
    ns.export("test.appswarm",sa)
    ns.get("test.appswarm").should == sa
    sleepDebug 1
    getFromGlobalProxy(proxy,"http://test.appswarm/Test?edit=false&testarg=1234",{"hupe"=>"bla"}).body.should be_valid_html
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 apps/wiki/spec/wiki_spec.rb