Sha256: 274e4df0d52282ccc8186ea3db491342b32d1125520f1cfa793b2f05bb5fe353

Contents?: true

Size: 861 Bytes

Versions: 1

Compression:

Stored size: 861 Bytes

Contents

describe "Rwiki.Data.Page", ->
  node
  data = {
    path: '/Home/Development/Dynamic languages/Ruby',
    htmlContent: 'html content',
    rawContent: 'raw content'
  }

  beforeEach ->
    node = new Rwiki.Data.Page(data)

  describe ":getPath", ->
    it "should return valid path", ->
      path = node.getPath()
      expect(path).toEqual('/Home/Development/Dynamic languages/Ruby')

  describe ":getParentPath", ->
    it "should return valid parent path", ->
      parentPath = node.getParentPath()
      expect(parentPath).toEqual('/Home/Development/Dynamic languages')

  describe ":getBaseName", ->
    it "should return valid base name", ->
      baseName = node.getBaseName()
      expect(baseName).toEqual("Ruby")

  describe ":getTitle", ->
    it "should return valid title", ->
      title = node.getTitle()
      expect(title).toEqual("Ruby")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rwiki-0.2.5 spec/coffeescripts/Rwiki/Data/PageSpec.coffee