More changes, specs.

This commit is contained in:
Christian Williams
2009-12-28 14:26:30 -06:00
parent e4a5d567e0
commit 59c85355fc
4 changed files with 30 additions and 20 deletions

View File

@@ -15,6 +15,8 @@ describe Jasmine::Server do
"/spec" => File.join(Jasmine.root, "spec")
})
config.stub!(:js_files).and_return(["/src/file1.js", "/spec/file2.js"])
@server = Jasmine::Server.new(0, config)
@thin_app = @server.thin.app
end
@@ -45,7 +47,10 @@ describe Jasmine::Server do
it "should serve /" do
code, headers, body = @thin_app.call("PATH_INFO" => "/", "SCRIPT_NAME" => "xxx")
code.should == 200
body = read(body)
p body
body.should include("\"/src/file1.js")
body.should include("\"/spec/file2.js")
body.should satisfy {|s| s.index("/src/file1.js") < s.index("/spec/file2.js") }
end
end