Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Fix saveFixtures default arguments. Close #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryneeverett committed May 18, 2015
1 parent 2b44359 commit 7d33d01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ Fixtures = this.Fixtures = function() {

execute('mongorestore -h 127.0.0.1:3001 --db ' + args.db + ' ' + path);
},
saveFixtures: function (args) {
defaultArgs(args);
saveFixtures: function (passedArgs) {
var args = defaultArgs(passedArgs),

var path = [process.env.PWD, 'tests/fixtures', args.name].join('/');
path = [process.env.PWD, 'tests/fixtures', args.name].join('/');

Npm.require('fs').lstat(path + '/' + args.db, function(error) {
if (!!error && error.code === 'ENOENT') {
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Package.describe({
name: 'ryne:fixtures',
version: '0.0.1',
version: '0.0.2',
summary: "Set your database to a consistent state in test.",
git: 'https://github.com/ryneeverett/meteor-fixtures.git',
documentation: 'README.md',
Expand Down

0 comments on commit 7d33d01

Please sign in to comment.