Skip to content
Myr

Started view specs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent e1152f6 · Browse files · 5 files+47 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+47 added−3 removed

  • tests:+45 added−1 removed
  • other:+2 added−2 removed

5 files+47 added−3 removed

modified:lib/express/plugins/view.js+2 added-2 removed
modified:lib/express/spec/mocks.js+14 added-1 removed
3 unmodified lines
4/**5 * Module dependencies.6 */7 8var utils = require('express/utils')8var utils = require('express/utils'),9 fs = require('fs')1011/**12 * Mock fs.readFile()13 */14 15fs.readFile = function(path, fn) {16 try {17 fn(null, fs.readFileSync(path))18 } catch (e) {19 fn(e)20 }21}2223// --- MockRequest2425var MockRequest = new Class({26
122 unmodified lines
added:spec/fixtures/hello.haml.html+1 added
added:spec/fixtures/layout.haml.html+2 added
modified:spec/spec.plugins.view.js+28 added