Skip to content

Instantly share code, notes, and snippets.

# coffeelint: disable=max_line_length
describe 'auth', () ->
authService = null
$cookieStore = null
angular.module('cookieStoreMock', [])
.factory '$cookieStore', -> {get: -> 'name'}
beforeEach ->
var qProjects = $http.get('db/view/projects/all')
.then(function(res){
if ( ! res.data) {
$q.reject(new Error('No project data received.'));
}
return data;
});
var qClients = $http.get('db/view/clients/map')
.then(function(res) {
var request = require('supertest'),
should = require('should'),
express = require('express');
var sessionStore = new express.session.MemoryStore();
var app = express()
var secret = 'aaaaaa'
var sessionID;
@realyze
realyze / watcher.coffee
Last active December 11, 2015 01:08
A script that mirrors changes made in your project to a local deployment in a Vagrant box.
# HOWTO
# =====
# 1. Share your project root directory with the Vagrant box. Let's say you
# call it `/home/vagrant/myapp`.
#
# 2. `vagrant shh into the Vagrant box and go to `/home/vagrant/myapp`.
#
# 3. Run
#
# sudo su - my_deploy_user -c 'coffee /home/vagrant/myapp/watcher.coffee'