

/**
 * WPCONN module
 */

var WPCONN = require('../');
var Site = require('../lib/site');

/**
 * Testing data
 */

var wpapp = require('./data');

/**
 * WPCONN instance
 */

var wpconn = new WPCONN();

/**
 * Create a `Site` instance
 */

describe('site', function(){
  it('should be an instance of `Site`', function(){
    var wpconn = new WPCONN();
    wpconn.site.should.be.an.instanceOf(Site);
  });

  it('should be set site identifier', function(){
    var wpconn = new WPCONN();
    var id = 'koke.me';
    wpconn.site.setId('koke.me');

    wpconn.site.id
      .should.be.eql('koke.me');
  });

  it('should require site data', function(done){
    var wpconn = new WPCONN();
    var site = wpconn.site;

    site.setId('koke.me');

    site.get(function(err, data){
      if (err) throw err;

      done();
    });
  });
});

@@ -119,13 +119,13 @@
 var 
-wpapp
+tdata
  = r
@@ -487,32 +487,8 @@
 ();%0A
-    var id = 'koke.me';%0A
     
@@ -501,37 +501,37 @@
 .site.setId(
-'koke.me'
+tdata.site
 );%0A
-%0A
     wpconn.s
@@ -558,25 +558,26 @@
 .be.eql(
-'koke.me'
+tdata.site
 );%0A  %7D);
@@ -706,17 +706,18 @@
 tId(
-'koke.me'
+tdata.site
 );%0A%0A
@@ -776,17 +776,16 @@
 ow err;%0A
-%0A
       do

use site testing data key