1 | var should = require('should')
|
2 | var path = require('path')
|
3 | var Site = require('..').Site
|
4 |
|
5 |
|
6 | describe('Site', function() {
|
7 |
|
8 | var site
|
9 |
|
10 | before(function() {
|
11 | site = new Site({
|
12 | cwd: path.join(__dirname, './fixture')
|
13 | })
|
14 | })
|
15 |
|
16 | it('should set cwd and dest', function() {
|
17 | site.cwd.should.contain('test/fixture')
|
18 | site.dest.should.contain('test/fixture/_site')
|
19 | })
|
20 |
|
21 | it('should parse _config.yml', function() {
|
22 | site.baseurl.should.be.String
|
23 | })
|
24 | })
|