Created
July 27, 2012 16:00
-
-
Save aboisvert/3188848 to your computer and use it in GitHub Desktop.
Buildr FlatSpec Example
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 characters
| 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 |
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 characters
| package org.example | |
| class Foo { | |
| val bar = 42 | |
| } |
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 characters
| 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