Skip to content

Commit d6b4bc3

Browse files
author
Leonard Ehrenfried
committed
Add spec for multiple newlines
1 parent 38495ef commit d6b4bc3

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.foo
2+
3+
import java.bla
4+
import scala.horst
5+
6+
import AgentTypes._
7+
import akka.actor.{Actor, ActorLogging, ActorRef, ActorRefFactory, ActorSystem, Props, Stash, Terminated}
8+
9+
10+
11+
class Bar

spec/fixtures/multiple_newlines.scala

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.foo
2+
3+
import AgentTypes._
4+
import scala.horst
5+
6+
import akka.actor.{Actor, ActorLogging, ActorRef, ActorRefFactory, ActorSystem, Props, Stash, Terminated}
7+
8+
9+
import java.bla
10+
11+
12+
class Bar

spec/import_sorting_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
describe ":SortScalaImports" do
44

55
describe "Sorting across groups" do
6-
["vanilla", "no_newline", "no_newline_after", "no_package"].each do |name|
6+
["vanilla", "no_newline", "no_newline_after", "no_package",
7+
"multiple_newlines"].each do |name|
78
it "should sort vanilla file" do
89
actual = sort_fixture_across_groups name
910
expected = expected(name)

0 commit comments

Comments
 (0)