Skip to content

Commit

Permalink
minor naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed Jan 23, 2016
1 parent 4d65ee4 commit f68f769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/sangria/marshalling/circe.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ object circe {
def render(node: Json) = node.noSpaces
}

implicit object circeJsonToInput extends ToInput[Json, Json] {
implicit object circeToInput extends ToInput[Json, Json] {
def toInput(value: Json) = (value, CirceInputUnmarshaller)
}

implicit object circeJsonFromInput extends FromInput[Json] {
implicit object circeFromInput extends FromInput[Json] {
val marshaller = CirceResultMarshaller
def fromResult(node: marshaller.Node) = node
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/sangria/marshalling/CirceSupportSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import sangria.marshalling.circe._
import sangria.marshalling.testkit._

class CirceSupportSpec extends WordSpec with Matchers with MarshallingBehaviour with InputHandlingBehaviour {
"SprayJson integration" should {
"Circe integration" should {
behave like `value (un)marshaller` (CirceResultMarshaller)

behave like `AST-based input unmarshaller` (circeJsonFromInput)
behave like `AST-based input unmarshaller` (circeFromInput)
behave like `AST-based input marshaller` (CirceResultMarshaller)
}

Expand Down

0 comments on commit f68f769

Please sign in to comment.