Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactoring

  • Loading branch information...
commit 4e8fe16d5890a97edf4de730c62c6738bba34d2f 1 parent 0ad48ee
@msuarz msuarz authored
Showing with 7 additions and 4 deletions.
  1. +3 −0  docs/src/files.coffee
  2. +4 −4 docs/src/frank.coffee
View
3  docs/src/files.coffee
@@ -13,3 +13,6 @@ class @Files
fs.readFile file, 'utf8', (err, data) ->
data.should.include content
done()
+
+ verify_contains: (file, content) ->
+ fs.readFileSync(file, 'utf8').should.include content
View
8 docs/src/frank.coffee
@@ -7,9 +7,9 @@ class @Frank
$ 'coffee src/frank ' + args
'@defaults =': (settings) ->
- defaults = fs.readFileSync __dirname + '/../../src/settings.coffee', 'UTF8'
- defaults.should.include settings
+ settings_file = __dirname + '/../../src/settings.coffee'
+ Files.verify_contains settings_file, settings
'@settings =': (settings) ->
- actual_settings = fs.readFileSync __dirname + '/../settings.coffee', 'UTF8'
- actual_settings.should.include settings
+ settings_file = __dirname + '/../settings.coffee'
+ Files.verify_contains settings_file, settings

0 comments on commit 4e8fe16

Please sign in to comment.
Something went wrong with that request. Please try again.