Skip to content

Instantly share code, notes, and snippets.

'use strict';
suite('Edit account', function() {
test('Change name', function(done) {
var self = this;
this.browser
.get(e2eConfig.baseUrl + "/user/edit")
.waitForElementByCss('form', self.mochaOptions.timeout);
.then(function (form) {
"use strict";
// Domenic needs a Tweeter
function Domenic(tweeter) {
this.tweeter = tweeter;
}
Domenic.inject = ["tweeter"];
Domenic.prototype.doSomethingCool = function () {
return this.tweeter.tweet("Did something cool!");

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

The first context
Creating Person with name Nick
✗ Errored » callback not fired
in Create a Person via JavaScript: When a person has a name,
in Creating a Person
in undefined✗ Errored » 1 errored ∙ 1 dropped
@jmreidy
jmreidy / gist:1401332
Created November 28, 2011 18:03 — forked from GraemeF/gist:1401254
vows-bdd
{Feature} = require "vows-bdd"
vows = require 'vows'
assert = require 'assert'
Feature("Share stuff between steps", module)
.scenario("Set properties on given and when")
.given "A is set", ->
@A = "A"
ctx = this
@jmreidy
jmreidy / gist:1309827
Created October 24, 2011 18:59 — forked from cronopio/gist:1307973
Testing vows-bdd
/**
* Pruebas para la creacion de un usuario en el sitio
*/
var Feature = require('vows-bdd').Feature,
http = require('http'),
assert = require('assert');
Feature('Creando un usuario', module)