-
Notifications
You must be signed in to change notification settings - Fork 3
/
development.feature
57 lines (44 loc) · 1.14 KB
/
development.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Feature: Support for pack development
Background:
Given I'm in project dir
Scenario: Use a local require
Given file ./Oyafile containing
"""
Project: project
Require:
github.com/tooploox/oya-fixtures: v1.0.0
Replace:
github.com/tooploox/oya-fixtures: /tmp/pack
Import:
foo: github.com/tooploox/oya-fixtures
"""
And file /tmp/pack/Oyafile containing
"""
Project: pack
version: echo 1.0.0
"""
When I run "oya foo.version"
Then the command succeeds
And the command outputs to stdout
"""
1.0.0
"""
And file ./.oya/packs/github.com/tooploox/[email protected]/Oyafile does not exist
Scenario: With local require oya doesn't attempt to lookup requirements remotely
Given file ./Oyafile containing
"""
Project: project
Require:
github.com/tooploox/does-not-exist: v1.0.0
Replace:
github.com/tooploox/does-not-exist: /tmp/pack
Import:
foo: github.com/tooploox/does-not-exist
"""
And file /tmp/pack/Oyafile containing
"""
Project: pack
version: echo 1.0.0
"""
When I run "oya foo.version"
Then the command succeeds