asoft
sea

~ tiny vessels of code slowly floating out to sea

Powered by a motorboat called the S.S.Tumblr

1 year ago

@9:53pm

Comments

i’ve got objects in my specs

If you are a bdd’r and just happen to be upgrading from sbt 0.5.6 to 0.7.1, when you run your specs, you just might be greeted with the lovely message:

Could not instantiate class foo.Bar: foo.Bar

The quick fix is to write your specs as classes rather than objects. I know. Classes?

I’m using the latest 2.7.7 supported version of specs.

val specs = "org.scala-tools.testing" % "specs" % "1.6.2.1-SNAPSHOT" % "test"

On a side note, if you cross compile your scala projects you will probably want to change the type of collection from a Set to a Seq.

override def crossScalaVersions = Seq("2.7.6", "2.7.7", "2.8.0.Beta1-RC1")

update: You now should actually define your crossScalaVersions in your build.properties file

build.scala.versions=2.7.6 2.7.7 2.8.0.Beta1-RC1

update: Eric just updated specs so you can whistle and call back ‘dem glassy-eyed objects

blog comments powered by Disqus