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 customerService, deferredCustomer, sampleCustomer, | |
productService, deferredProduct, sampleProduct; | |
beforeEach(function () { | |
sampleCustomer = {name:'Bob'}; | |
customerService = { get:sinon.stub() }; | |
productService = { get:sinon.stub() }; | |
sampleProduct = { type: 'Product'} |
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
result=`curl http://localhost:8090/test` | |
echo "Result is '$result'" | |
if [[ "$result" == *"false"* ]]; then | |
exit 1 | |
fi | |
exit 0 |
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
// incject | |
inject(function(_$rootScope_, _$controller_, _$q_, _$injector_) {...} | |
// when | |
when(function(){ | |
deferred.resolve({model: 'balba'}); | |
$rootScope.$digest(); | |
}) | |
function MockService() { |
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
describe('Controller: TasksCtrl', function () { | |
// load the controller's module | |
beforeEach(module('yeomanAngularApp')); | |
var TasksCtrl, | |
scope, | |
tasks = { getAll: function () { | |
return [ | |
{name: 'task_1'} |
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
gem install cucumber | |
mkdir project && cd project | |
npm install -g yo grunt-cli bower | |
npm install generator-angular generator-testacular | |
yo angular | |
npm install && bower install | |
bower install angular-ui | |
grunt server |
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
[color] | |
ui = auto | |
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
track = !sh -c 'git checkout --track -b $1 origin/$1' - | |
f = fetch | |
fstart = !sh -c 'git push origin devel:refs/heads/features/$1 && git checkout --track -b features/$1 origin/features/$1' - |
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
_thorcomplete() { | |
COMPREPLY=($(compgen -W "`thor list | grep thor | cut -d " " -f 2`" -- ${COMP_WORDS[COMP_CWORD]})) | |
return 0 | |
} | |
complete -o default -o nospace -F _thorcomplete thor |
NewerOlder