-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from chrisala/master
Added 2 editor emails and a 2nd grant manager email to the project im…
- Loading branch information
Showing
5 changed files
with
60 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ class GmsMapperSpec extends Specification { | |
when: | ||
def projectDetails = gmsMapper.mapProject(rows) | ||
|
||
then: | ||
then: "Project details are mapped correctly" | ||
def expectedStartDate = '2014-10-12T13:00:00+0000' | ||
def expectedEndDate = '2015-03-22T13:00:00+0000' | ||
def project = projectDetails.project | ||
|
@@ -50,12 +50,12 @@ class GmsMapperSpec extends Specification { | |
0 == project.funding | ||
'not approved' == project.planStatus | ||
|
||
// TODO check timeline! | ||
|
||
// TODO check timeline | ||
and: "sites are mapped correctly" | ||
def sites = projectDetails.sites | ||
// Ignoring for the moment, not sure how to handle the kml transformation, probably out of scope of the mapper. | ||
|
||
|
||
and: "activities are mapped correctly" | ||
// Input data contains 4 output targets which can be mapped to 3 activities | ||
def activities = projectDetails.activities | ||
3 == activities.size() | ||
|
@@ -70,6 +70,7 @@ class GmsMapperSpec extends Specification { | |
|
||
} | ||
|
||
and: "output targets are mapped correctly" | ||
// output targets | ||
def outputTargets = project.outputTargets | ||
4 == outputTargets.size() | ||
|
@@ -84,6 +85,12 @@ class GmsMapperSpec extends Specification { | |
|
||
} | ||
|
||
and: "emails are mapped correctly" | ||
project.editorEmail == "[email protected]" | ||
project.editorEmail2 == "[email protected]" | ||
project.grantManagerEmail == "[email protected]" | ||
project.grantManagerEmail2 == "[email protected]" | ||
|
||
} | ||
|
||
/** | ||
|
This file contains 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
Oops, something went wrong.