Skip to content

Commit

Permalink
[fix] Fix undefined 'url' for static plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Oct 3, 2012
1 parent 4b18fda commit 4825548
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/static-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions lib/flatiron/plugins/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down
4 changes: 2 additions & 2 deletions test/plugins/static-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand All @@ -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);

Expand Down

0 comments on commit 4825548

Please sign in to comment.