Revisions
-
yoshiori renamed this gist
May 30, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class TraitGetClassTest extends Specification { "Trait mixin " should { "getClass " in { val hoge = new Hoge with BarTrait hoge.isInstanceOf[Hoge] must beTrue } } } -
yamashiro created this gist
May 30, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import org.specs2.mutable._ trait BarTrait {} class Hoge {} class TraitGetClassTest extends Specification { "Trait mixin " should { "getClass " in { val hoge = new Hoge with BarTrait hoge.getClass.toString must_== "Hoge" } } }