describe('Processes', function() {
    'use strict';
    let atf = require('../../specs/atf');
    let ropts = {
        db: 'mctest',
        port: 30815
    };

    let r = require('rethinkdbdash')(ropts);
    let p = require('./processes')(r);

    describe('#create', function() {
        it('should create a process', function(done) {
            function validate(err) {
                console.log("err", err);
                done(err);
            }
            atf(function *() {
                let process = {
                    name: 'as_received',
                    owner: 'test@mc.org',
                    template_id: 'as_received',
                    description : '',
                    project_id: 'abc123',
                    settings: [],
                    measurements: []
                };
                yield p.create(process);
            }, validate);
        });
    });
});

@@ -1,16 +1,41 @@
+/* jshint expr: true */%0A%0A
 describe('Proces
@@ -113,16 +113,52 @@
 /atf');%0A
+    let should = require('should');%0A
     let 
@@ -335,24 +335,558 @@
 unction() %7B%0A
+        before(function(done) %7B%0A            this.timeout(3000);%0A            atf(function *() %7B%0A                yield r.table('processes').delete();%0A                yield r.table('project2process').delete();%0A                yield r.table('settings').delete();%0A                yield r.table('process2setting').delete();%0A                yield r.table('setting_properties').delete();%0A                yield r.table('measurements').delete();%0A                yield r.table('process2measurement').delete();%0A            %7D, done);%0A        %7D);%0A%0A
         it('
@@ -985,31 +985,29 @@
     
-console.log(%22err%22, err)
+should(err).not.exist
 ;%0A  
@@ -1135,27 +1135,24 @@
  name: '
-as_received
+SEM EBSD
 ',%0A     
@@ -1226,171 +1226,2234 @@
 d: '
+sem_ebsd',%0A                    what : 'I me
 as
-_received',%0A                    description : '',%0A                    project_id: 'abc123',%0A                    settings: %5B%5D,%0A                    measurements: %5B
+ured the composition and area fraction for my samples',%0A                    how: 'I ran the SEM with the voltage set to max (4ev) so the back scatter array could maximize its detection ratios',%0A                    project_id: 'abc123',%0A                    settings: %5B%0A                        %7B%0A                            display_name: 'SEM Settings',%0A                            name: 'sem_settings',%0A                            properties: %5B%0A                                %7B%0A                                    display_name: 'Volts',%0A                                    name: 'volts',%0A                                    _type: 'number',%0A                                    value: 4,%0A                                    units: 'ev'%0A                                %7D%0A                            %5D%0A                        %7D%0A                    %5D,%0A                    measurements_created: %5B%0A                        %7B%0A                            name: 'Area fraction',%0A                            attribute: 'area_fraction',%0A                            _type: 'number',%0A                            units: 'fraction',%0A                            value: 0.5,%0A                            sample_id: 'sample_1_id',%0A                            from_measurements: %5B'measure1', 'measure2'%5D%0A                        %7D,%0A                        %7B%0A                            name: 'Composition',%0A                            attribute: 'composition',%0A                            _type: 'composition',%0A                            value: %7B%0A                                mg: 10,%0A                                zn: 5%0A                            %7D,%0A                            units: 'at%25',%0A                            sample_id: 'sample_2_id',%0A                            from_file: %7B%0A                                datafile_id: 'file_id_1',%0A                                grid: %7B%0A                                    row_start: 1,%0A                                    row_end: 3,%0A                                    column_start: 1,%0A                                    column_end: 3%0A                                %7D%0A                            %7D%0A                        %7D%0A                    
 %5D%0A  

Work through schema definition and have the test clean out entries in the database.