       input = "  foobar1\n  foobar2\n  foobar3\n  foobar4"
       expect( IndentChecker.getLinesWithLessCommonType(input) ).toEqual([])
 
+    it "returns an empty array if the input indentation types are equal", ->
+      input = "  foobar1\n  foobar2\n\tfoobar3\n\tfoobar4"
+      expect( IndentChecker.getLinesWithLessCommonType(input) ).toEqual([])
+
 
 describe "MixedIndentWarning", ->
   [workspaceElement, activationPromise] = []

  beforeEach ->
    activationPromise = atom.packages.activatePackage('mixed-indent-warning')

  describe "when the mixed-indent-warning:file event is triggered", ->
    it "shows a decoration if there are two types of indentation in the file", ->

      waitsForPromise ->
        atom.workspace.open(path.join(fixturePath, 'more-spaces.txt')).then (editor) ->
          expect(editor.getText().length).toBeGreaterThan 1

          atom.commands.dispatch workspaceElement, 'mixed-indent-warning:file'
          expect( editor.findMarkers({MixedIndent: 'mixed-indent-incorrect'}).length ).toBeGreaterThan 1

    it "does not show a decoration if all indentation in the file is the same", ->
      waitsForPromise ->
        atom.workspace.open(path.join(fixturePath, 'equal-tabs-spaces.txt')).then (editor) ->
          expect(editor.getText().length).toBeGreaterThan 1
          workspaceElement = atom.views.getView(atom.workspace)
          atom.commands.dispatch workspaceElement, 'mixed-indent-warning:file'
          expect( editor.findMarkers({MixedIndent: 'mixed-indent-incorrect'}).length ).not.toBeGreaterThan 1

    it "shows a decoration next to lines with the less common indentation", ->
      waitsForPromise ->
        atom.workspace.open(path.join(fixturePath, 'more-spaces.txt')).then (editor) ->
          expect(editor.getText().length).toBeGreaterThan 1
          workspaceElement = atom.views.getView(atom.workspace)
          atom.commands.dispatch workspaceElement, 'mixed-indent-warning:file'
          rows = editor.findMarkers({MixedIndent: 'mixed-indent-incorrect'}).reduce (rows, marker) ->
            rows = rows.concat( marker.getBufferRange().getRows() )
          , []
          expect(rows).toEqual([4, 5])

  describe "when the mixed-indent-warning:toggle event is triggered", ->
    xit "hides and shows the modal panel", ->
