 
   text = Trix.Text.textForAttachmentWithAttributes(attachment, bold: true)
   runsEqual text,
-    [{ attachment: attachment, string: undefined, attributes: { bold: true }}],
+    [{ attachment: attachment, string: undefined, attributes: { bold: true } }],
     "single-run text with attachment and attributes"
 
 

  empty = fixture("empty")
  equal empty.getLength(), 0, "empty text length is 0"

  text = fixture("singleRun")
  equal text.getLength(), 11, "single-run text length"

  text = fixture("multipleRun")
  equal text.getLength(), 17, "multiple-run text length"


# Fixtures

fixtures =
  empty: []

  plain: [
    new Trix.Piece("Hello world")
  ]

  bold: [
    new Trix.Piece("Hello world", bold: true)
  ]

  italic: [
    new Trix.Piece("Hello world", italic: true)
  ]

  formatted: [
    new Trix.Piece("Hello, "),
    new Trix.Piece("rich ", bold: true, italic: true),
    new Trix.Piece("text", italic: true),
    new Trix.Piece("!")
  ]

