-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ruby script to print env variables (works around win vs. linux sh…
…ell syntax)
- Loading branch information
1 parent
91a3611
commit 312b0fa
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ARGV.each { |arg| puts ENV[arg] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
command: | ||
- ruby | ||
- fixtures/environment.rb | ||
|
||
tests: | ||
- name: environment | ||
environment: | ||
TEST_ENV: "test-value" | ||
command: | | ||
echo $TEST_ENV | ||
args: | ||
- TEST_ENV | ||
stdout: | | ||
test-value | ||
- name: inherits | ||
command: | | ||
echo $ONLY_DEFINED_IN_SPEC | ||
args: | ||
- ONLY_DEFINED_IN_SPEC | ||
stdout: | | ||
defined_in_spec | ||
- name: overwrites | ||
environment: | ||
OVERWRITE_IN_FIXTURE: "overwritten" | ||
command: | | ||
echo $OVERWRITE_IN_FIXTURE | ||
args: | ||
- OVERWRITE_IN_FIXTURE | ||
stdout: | | ||
overwritten | ||
- name: not-defined | ||
command: | | ||
echo $NOT_DEFINED | ||
args: | ||
- NOT_DEFINED | ||
stdout: "\n" | ||
|
||
- name: spec-is-merged-into-fixture-not-replaced | ||
environment: | ||
OVERWRITE_IN_FIXTURE: "overwritten" | ||
command: | | ||
echo $OVERWRITE_IN_FIXTURE | ||
echo $ONLY_DEFINED_IN_SPEC | ||
args: | ||
- OVERWRITE_IN_FIXTURE | ||
- ONLY_DEFINED_IN_SPEC | ||
stdout: | | ||
overwritten | ||
defined_in_spec | ||