| 785 | } |
| 786 | |
| 787 | function pullAndVerifyFileInDev(fileName, fileContents) { |
| 788 | describe(`pull in dev and verify contents of ${fileName}`, function() { |
| 789 | it('should pull', function(callback) { |
| 790 | const execOptions = { |
| 791 | cwd: courseDevDir, |
| 792 | env: process.env, |
| 793 | }; |
| 794 | exec(`git pull`, execOptions, (err) => { |
| 795 | if (ERR(err, callback)) return; |
| 796 | callback(null); |
| 797 | }); |
| 798 | }); |
| 799 | it('should match contents', function() { |
| 800 | assert.strictEqual(fs.readFileSync(path.join(courseDevDir, fileName), 'utf-8'), fileContents); |
| 801 | }); |
| 802 | }); |
| 803 | } |
| 804 | |
| 805 | function writeAndPushFileInDev(fileName, fileContents) { |
| 806 | describe(`write ${fileName} in courseDev and push to courseOrigin`, function() { |