// jscs:disable maximumLineLength
'use strict';

const assert = require('assert');
const Robotto = require('../src/robotto');

let robotto;

describe('robotto', () => {
    beforeEach(() => {
        robotto = new Robotto();
    });

    describe('getRobotsUrl', () => {
        it('should return the robots.txt path for a url', () => {
            let url = robotto.getRobotsUrl('http://my-cool-url.com/blog-post/1');
            assert.deepEqual('http://my-cool-url.com/robots.txt', url.href);
        });
    });
});

@@ -70,24 +70,29 @@
 re('
+chai').
 assert
-')
 ;%0Aconst 
 Robo
@@ -87,17 +87,17 @@
 ;%0Aconst 
-R
+r
 obotto =
@@ -133,101 +133,143 @@
 let 
-robotto;%0A%0Adescribe('robotto', () =%3E %7B%0A    beforeEach(() =%3E %7B%0A        robotto = new Robotto();
+coolUrl = 'http://my-cool-domain.com/blog-post/1';%0Alet coolRobot = 'http://my-cool-domain.com/robots.txt';%0A%0Adescribe('robotto', () =%3E %7B
 %0A   
@@ -288,16 +288,17 @@
 scribe('
+_
 getRobot
@@ -328,25 +328,15 @@
 it('
-should 
 return
- the
+s
  rob
@@ -347,22 +347,26 @@
 txt 
-path
+url
  for 
-a url
+given host
 ', (
@@ -388,17 +388,23 @@
     let 
-u
+robotsU
 rl = rob
@@ -408,16 +408,17 @@
 robotto.
+_
 getRobot
@@ -426,121 +426,67 @@
 Url(
-'http://my-cool-url.com/blog-post/1');%0A            assert.deepEqual('http://my-cool-url.com/robots.txt', url.href
+coolUrl);%0A            assert.deepEqual(robotsUrl, coolRobot
 );%0A 

Write tests for _getRobotsUrl