url = require 'url'

DocsPage = require './docspage.po'

s =
  'If you need help please navigate to http://github.com/io-digital/io-angular'

describe 'The "/docs" view', ->

  beforeEach ->
    @docsPage = new DocsPage()
    @docsPage.get()

  it 'should link to the github repo', ->

    messageList = @docsPage.getMessages()

    expect(messageList.count()).toBe 1
    expect(messageList.get(0).getText()).toBe s
