Permalink
Browse files

refactoring

  • Loading branch information...
1 parent 0ad48ee commit 4e8fe16d5890a97edf4de730c62c6738bba34d2f @msuarz msuarz committed Oct 27, 2012
Showing with 7 additions and 4 deletions.
  1. +3 −0 docs/src/files.coffee
  2. +4 −4 docs/src/frank.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
@@ -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.