Skip to content

Instantly share code, notes, and snippets.

@aboisvert
Created July 27, 2012 16:00
Show Gist options
  • Save aboisvert/3188848 to your computer and use it in GitHub Desktop.
Save aboisvert/3188848 to your computer and use it in GitHub Desktop.
Buildr FlatSpec Example
require 'buildr/scala'
VERSION_NUMBER = "1.0.0"
repositories.remote << "http://repo1.maven.org/maven2"
repositories.remote << "http://oss.sonatype.org/content/repositories/releases""
define "buildr-flatspec" do
project.version = VERSION_NUMBER
project.group = "org.example"
end
package org.example
class Foo {
val bar = 42
}
package org.example
import org.scalatest._
class FooSuite extends FlatSpec {
behavior of "Foo"
it should "have bar equal to 42" in {
assert((new Foo).bar == 42)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment