Permalink
Browse files

[fix] Fix undefined 'url' for static plugin

  • Loading branch information...
1 parent 4b18fda commit 4825548fe0a54dc68f05b8348d3fabdbd7ea19f4 @pksunkara pksunkara committed Oct 3, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 examples/static-app/package.json
  2. +1 −0 lib/flatiron/plugins/static.js
  3. +2 −2 test/plugins/static-test.js
@@ -5,7 +5,7 @@
"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"dependencies": {
"flatiron": "0.2.x",
- "st": "0.1.x"
+ "st": "0.0.x"
},
"main": "./app",
"engines": {
@@ -45,6 +45,7 @@ exports.attach = function (options) {
//
options.index = false;
options.dot = false;
+ options.url = '/';
//
// Attempt to merge defaults passed to `app.use(flatiron.plugins.static)`
@@ -27,7 +27,7 @@ vows.describe('flatiron/plugins/static').addBatch({
topic: function () {
app.start(8080, this.callback)
},
- "a GET to /": {
+ "a GET to /headers": {
topic: function () {
request('http://localhost:8080/headers', this.callback);
},
@@ -41,7 +41,7 @@ vows.describe('flatiron/plugins/static').addBatch({
topic: function () {
request('http://localhost:8080/style.css', this.callback);
},
- "should respond with JSON headers": function (err, res, body) {
+ "should respond with style.css file": function (err, res, body) {
assert.isNull(err);
assert.equal(res.statusCode, 200);

0 comments on commit 4825548

Please sign in to comment.