               description : 'this is a function '
             }]
 
+  describe 'class methods', ->
+    it 'generates class level methods', ->
+      file = """
+        # Public: Some class
+        class Something
+          # Public: Some class level function
+          @aClassFunction: ->
+
+          # A private class function
+          @privateClassFunction: ->
+
+          # Public: this is a function
+          someFunction: ->
+      """
+      json = Parser.generateDigest file,
+        filename: 'file1.coffee'
+        packageJson:
+          name: 'somerepo'
+          repository: 'https://github.com/atom/somerepo.git'
+          version: '2.3.4'
+
+      expect(json).toEqualJson
+        classes:
+          Something:
+            visibility : 'Public'
+            name : 'Something'
+            filename : 'file1.coffee'
+            summary : 'Some class '
+            description : 'Some class '
+            srcUrl: 'https://github.com/atom/somerepo/blob/v2.3.4/file1.coffee#L2'
+            sections : []
+            classMethods : [{
+              visibility : 'Public'
+              name : 'aClassFunction'
+              sectionName : null
+              srcUrl : 'https://github.com/atom/somerepo/blob/v2.3.4/file1.coffee#L4'
+              summary : 'Some class level function '
+              description : 'Some class level function '
+            }]
+            instanceMethods: [{
+              visibility : 'Public'
+              name : 'someFunction'
+              sectionName : null
+              srcUrl : 'https://github.com/atom/somerepo/blob/v2.3.4/file1.coffee#L10'
+              summary : 'this is a function '
+              description : 'this is a function '
+            }]
+
   describe 'sections', ->
     it 'correctly splits the sections when there are mutiple classes in the file', ->
       file = """

Biscotto = require 'biscotto'

describe 'digest', ->
  describe 'src generation', ->
    it 'generates links to github based on repo and version', ->
      file = """
        # Public: Some class

        description: 'in section two '
        srcUrl: null
      }]

# Yeah, recreating some biscotto stuff here...
class Parser
