Skip to content

Commit

Permalink
Merge pull request #13225 from matrei/matrei/tests-windows-compatible
Browse files Browse the repository at this point in the history
Added @IgnoreIf({os.windows}) on test that is testing for *nix paths.
  • Loading branch information
puneetbehl authored Nov 23, 2023
2 parents f48afd6 + 1a34712 commit 8592c40
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package org.grails.io.support

import grails.util.BuildSettings
import org.grails.io.support.GrailsResourceUtils
import org.grails.io.support.Resource
import org.grails.io.support.UrlResource
import org.springframework.mock.web.MockHttpServletRequest
import org.springframework.mock.web.MockServletContext
import spock.lang.IgnoreIf
import spock.lang.Specification

class GrailsResourceUtilsSpec extends Specification {
Expand Down Expand Up @@ -171,6 +169,7 @@ class GrailsResourceUtilsSpec extends Specification {
"alpha/beta/gamma" == GrailsResourceUtils.appendPiecesForUri("alpha", "beta", "gamma")
}

@IgnoreIf({ os.windows })
void testGetPathFromBaseDir() {
expect:
"views/demo/index.gsp" == GrailsResourceUtils.getPathFromBaseDir("${BuildSettings.BASE_DIR.absolutePath}/grails-app/views/demo/index.gsp")
Expand Down

0 comments on commit 8592c40

Please sign in to comment.