diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-06-19 13:55:30 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-07-10 13:57:32 +0000 |
commit | 597f2a19363b7e91b928d814627c9236779998fb (patch) | |
tree | a6577fd429433b8e251e4eb34f0f2ff23d325f67 /yarns/branches-workspaces.yarn | |
parent | 670bcd28354ed2d44c02eaa0d0d1a78f6c49458d (diff) | |
download | morph-597f2a19363b7e91b928d814627c9236779998fb.tar.gz |
yarns: Adapt to put morphologies in subdirsbaserock/richardmaw/S11284/morphologies-by-path-v4
We want to move our morphologies in our definitions repository into
subdirectories, so they're more organised.
We'd prefer to only refer to morphologies by file path, rather than a
name that loosely corresponds to the file path, but we need to support
that for backwards compatibility until we can move all of our
morphologies into the definitions repository.
However, since we want to eventually remove this, and we want to ensure
that file paths work, we change the yarn tests to use file paths.
Diffstat (limited to 'yarns/branches-workspaces.yarn')
-rw-r--r-- | yarns/branches-workspaces.yarn | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/yarns/branches-workspaces.yarn b/yarns/branches-workspaces.yarn index 4c5d0efe..96fbbd12 100644 --- a/yarns/branches-workspaces.yarn +++ b/yarns/branches-workspaces.yarn @@ -178,21 +178,21 @@ all the refs are unchanged. GIVEN a workspace AND a git server WHEN the user creates a system branch called foo - THEN in branch foo, stratum test-stratum refs test-chunk in master + THEN in branch foo, stratum strata/test-stratum.morph refs test-chunk in master Edit the chunk. We make use of special knowledge here: `test:test-chunk` is a chunk repository created in the mocked git server, for testing purposes. - WHEN the user edits the chunk test-chunk in the stratum test-stratum in the system test-system in branch foo - THEN in branch foo, stratum test-stratum refs test-chunk in foo + WHEN the user edits the chunk test-chunk in branch foo + THEN in branch foo, stratum strata/test-stratum.morph refs test-chunk in foo AND the edited chunk test:test-chunk has git branch foo Editing a morphology should not cause it to start having repo or ref fields when referring to strata, when it didn't before. - AND in branch foo, system test-system refers to test-stratum without repo - AND in branch foo, system test-system refers to test-stratum without ref + AND in branch foo, system systems/test-system.morph refers to test-stratum without repo + AND in branch foo, system systems/test-system.morph refers to test-stratum without ref Status of system branch checkout -------------------------------- @@ -207,7 +207,7 @@ repositories referenced in the system branch. WHEN the user creates a system branch called foo THEN morph reports no outstanding changes in foo - WHEN the user edits the chunk test-chunk in the stratum test-stratum in the system test-system in branch foo + WHEN the user edits the chunk test-chunk in branch foo THEN morph reports changes in foo in test:morphs only WHEN creating file foo in test/test-chunk in branch foo @@ -232,7 +232,7 @@ branch checkout. GIVEN a workspace AND a git server WHEN the user creates a system branch called foo - AND the user edits the chunk test-chunk in the stratum test-stratum in the system test-system in branch foo + AND the user edits the chunk test-chunk in branch foo AND running shell command in each repo in foo THEN morph ran command in test/morphs in foo AND morph ran command in test/test-chunk in foo @@ -257,8 +257,8 @@ unpetrify and verify that we have all the same refs as before. Petrifying a morphology should not cause it to start having repo or ref fields when referring to strata, when it didn't before. - AND in branch foo, system test-system refers to test-stratum without repo - AND in branch foo, system test-system refers to test-stratum without ref + AND in branch foo, system systems/test-system.morph refers to test-stratum without repo + AND in branch foo, system systems/test-system.morph refers to test-stratum without ref Unpetrify must put the morphologies back in the same logical state they were in before. @@ -269,8 +269,8 @@ were in before. Unpetrifying a morphology should not cause it to start having repo or ref fields when referring to strata, when it didn't before. - AND in branch foo, system test-system refers to test-stratum without repo - AND in branch foo, system test-system refers to test-stratum without ref + AND in branch foo, system systems/test-system.morph refers to test-stratum without repo + AND in branch foo, system systems/test-system.morph refers to test-stratum without ref Generating a manifest works |