Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

GRAILS-9342 for 2.1.x branch: YamlTocStrategySpec fixed to use unix s…

…tyle file seprators
  • Loading branch information...
commit 0b7cebe20bd3960ce2d55acbd3b3fae1f311ad5e 1 parent 0a13419
Damir Murat dmurat authored
18 grails-docs/src/test/groovy/grails/doc/internal/YamlTocStrategySpec.groovy
@@ -7,13 +7,13 @@ class YamlTocStrategySpec extends Specification {
7 7 given: "A YAML loader"
8 8 def loader = new YamlTocStrategy(new MockResourceChecker([
9 9 "intro.gdoc",
10   - "intro" + File.separatorChar + "whatsNew.gdoc",
11   - "intro" + File.separatorChar + "whatsNew" + File.separatorChar + "devEnvFeatures.gdoc",
12   - "intro" + File.separatorChar + "whatsNew" + File.separatorChar + "coreFeatures.gdoc",
13   - "intro" + File.separatorChar + "whatsNew" + File.separatorChar + "webFeatures.gdoc",
14   - "intro" + File.separatorChar + "changes.gdoc",
15   - "intro" + File.separatorChar + "partOne.gdoc",
16   - "intro" + File.separatorChar + "partTwo.gdoc",
  10 + "intro/whatsNew.gdoc",
  11 + "intro/whatsNew/devEnvFeatures.gdoc",
  12 + "intro/whatsNew/coreFeatures.gdoc",
  13 + "intro/whatsNew/webFeatures.gdoc",
  14 + "intro/changes.gdoc",
  15 + "intro/partOne.gdoc",
  16 + "intro/partTwo.gdoc",
17 17 "gettingStarted.gdoc",
18 18 "downloading.gdoc",
19 19 "upgrading.gdoc",
@@ -48,10 +48,10 @@ class YamlTocStrategySpec extends Specification {
48 48 toc.children[0].parent == toc
49 49 toc.children[0].children*.name == ["whatsNew", "changes"]
50 50 toc.children[0].children*.title == ["What's new in Grails 2.0?", "Breaking Changes"]
51   - toc.children[0].children*.file == ["intro" + File.separatorChar + "whatsNew.gdoc", "intro" + File.separatorChar + "changes.gdoc"]
  51 + toc.children[0].children*.file == ["intro/whatsNew.gdoc", "intro/changes.gdoc"]
52 52 toc.children[0].children[0].children[1].name == "coreFeatures"
53 53 toc.children[0].children[0].children[1].title == "Core Features"
54   - toc.children[0].children[0].children[1].file == "intro" + File.separatorChar + "whatsNew" + File.separatorChar + "coreFeatures.gdoc"
  54 + toc.children[0].children[0].children[1].file == "intro/whatsNew/coreFeatures.gdoc"
55 55 toc.children[1].children*.name == ["downloading", "upgrading", "creatingApp"]
56 56 toc.children[1].children*.title == [
57 57 "Downloading and Installing",

0 comments on commit 0b7cebe

Please sign in to comment.
Something went wrong with that request. Please try again.