This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coffeelint: disable=max_line_length | |
describe 'auth', () -> | |
authService = null | |
$cookieStore = null | |
angular.module('cookieStoreMock', []) | |
.factory '$cookieStore', -> {get: -> 'name'} | |
beforeEach -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('supertest'), | |
should = require('should'), | |
express = require('express'); | |
var sessionStore = new express.session.MemoryStore(); | |
var app = express() | |
var secret = 'aaaaaa' | |
var sessionID; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
NewerOlder