Permalink
Browse files

made the integration test for environment and ordering work

  • Loading branch information...
1 parent 99ecc80 commit a7add357c1ba9a73cf48e10ceb2350156e85e781 @jettro committed Nov 22, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/integration/EnvironmentIntegrationTests.groovy
@@ -6,23 +6,23 @@ class EnvironmentIntegrationTests extends GrailsUnitTestCase {
protected void setUp() {
env = new Environment(name:'dev',lastDeploy: new DateTime()).save()
- env.addToLinks new Link(title:'btest',url:'http://test.gridshore.nl')
+ env.addToLinks new Link(title:'bTest',url:'http://test.gridshore.nl')
env.addToLinks new Link(title:'aTest',url:'http://atest.gridshore.nl')
env.addToLinks new Link(title:'zTest',url:'http://ztest.gridshore.nl')
env.addToLinks new Link(title:'tTest',url:'http://ztest.gridshore.nl')
+ env.save(flush:true)
}
-
-
void testEnvironmentLinkSorting() {
def foundEnv = Environment.get(env.id)
+ foundEnv.refresh()
def links = foundEnv.links.collect {it.title}
assertEquals(['aTest','bTest','tTest','zTest'],links)
}
void testLinkSorting() {
- def foundLinks = Link.findAll()
+ def foundLinks = Link.list()
assertEquals(['aTest','bTest','tTest','zTest'],foundLinks.collect {it.title})
}
}

0 comments on commit a7add35

Please sign in to comment.