We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c9c16 commit b4f7373Copy full SHA for b4f7373
spec/bashly/config_spec.rb
@@ -18,8 +18,17 @@
18
19
context "with a string argument" do
20
let(:config) { "spec/fixtures/config.yml" }
21
+
22
it "treats the string as a path to YAML and loads it" do
- expect(subject["loaded"]).to eq "yes indeed"
23
+ expect(subject["loaded"]).to eq "yes indeed"
24
+ end
25
26
+ context "when the loaded YAML contains import directives" do
27
+ let(:config) { "spec/fixtures/import.yml" }
28
29
+ it "evaluates them" do
30
+ expect(subject["commands"].first['loaded']).to eq "yes indeed"
31
32
end
33
34
spec/fixtures/import.yml
@@ -0,0 +1,3 @@
1
+commands:
2
+ - import: spec/fixtures/config.yml
3
0 commit comments