diff --git a/.gitignore b/.gitignore index 4ae45467dc..dd55d8ea09 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ newrelic_agent.log .bower-registry .bower-cache .vagrant +Vagrantfile *.log src/*/*.map diff --git a/Vagrantfile b/Vagrantfile.example similarity index 95% rename from Vagrantfile rename to Vagrantfile.example index c0fb32fe35..52ffdf1096 100644 --- a/Vagrantfile +++ b/Vagrantfile.example @@ -6,6 +6,8 @@ VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.provider "virtualbox" do |v| + v.memory = 768 + v.cpus = 1 v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"] end config.vm.box = "thepeopleseason/habitrpg" diff --git a/test/spec/mocks/sandbox.js b/test/spec/mocks/sandbox.js new file mode 100644 index 0000000000..f095eefd09 --- /dev/null +++ b/test/spec/mocks/sandbox.js @@ -0,0 +1,9 @@ +var sandbox; + +beforeEach(function() { + sandbox = sinon.sandbox.create(); +}); + +afterEach(function() { + sandbox.restore(); +}); diff --git a/test/spec/specHelper.js b/test/spec/specHelper.js index 115d9a70f5..60a638024f 100644 --- a/test/spec/specHelper.js +++ b/test/spec/specHelper.js @@ -1,14 +1,5 @@ beforeEach(module('habitrpg')); -var sandbox; -beforeEach(function() { - sandbox = sinon.sandbox.create(); -}); - -afterEach(function() { - sandbox.restore(); -}); - var specHelper = {}; (function(){