Skip to content

Instantly share code, notes, and snippets.

@yamashiro
Created May 30, 2012 09:55
Show Gist options
  • Save yamashiro/2835272 to your computer and use it in GitHub Desktop.
Save yamashiro/2835272 to your computer and use it in GitHub Desktop.
Traitつき無名クラス
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"
}
}
}
@yamashiro
Copy link
Author

Yasushi さんの張ったspecs2のmatcherのソース明日見てみようっと…あざす

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment