Skip to content

Instantly share code, notes, and snippets.

@swoogles
Created September 25, 2014 17:17
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 swoogles/9ed17f657c59036c30d0 to your computer and use it in GitHub Desktop.
Save swoogles/9ed17f657c59036c30d0 to your computer and use it in GitHub Desktop.
"A SecureFile instance copied from an existing file" should {
"Have the same idx as the source " in {
copiedFile.secureFileIdx mustEqual(NEW_SECURE_FILE_IDX)
}
"Have the same subscriberIdx as the source " in {
copiedFile.subscriberIdx mustEqual(NEW_SUBSCRIBER_IDX)
}
"Have the same userIdx as the source " in {
copiedFile.userIdx mustEqual(NEW_USER_IDX)
}
"Have the same file size as the source " in {
copiedFile.fileSizeBytes mustEqual(NEW_FILE_SIZE_BYTES)
}
"Have all the same fields as the source " in {
copiedFile.secureFileIdx mustEqual(NEW_SECURE_FILE_IDX)
copiedFile.subscriberIdx mustEqual(NEW_SUBSCRIBER_IDX)
copiedFile.userIdx mustEqual(NEW_USER_IDX)
copiedFile.fileSizeBytes mustEqual(NEW_FILE_SIZE_BYTES)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment