Skip to content

Instantly share code, notes, and snippets.

@dhinojosa
Created October 19, 2018 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhinojosa/580cc583b165ba9d19d410861857820f to your computer and use it in GitHub Desktop.
Save dhinojosa/580cc583b165ba9d19d410861857820f to your computer and use it in GitHub Desktop.
package com.xyzcorp
import org.scalatest.{FunSpec, Matchers}
class EmployeeSpec extends FunSpec with Matchers {
describe("An employee") {
describe("when a first name and last name is given and full name is called") {
it("should return the first name and last name in between") {
val e = new Employee("Nikifor", "N")
e.fullName should be ("Nikifor N")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment