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 fcc09ca commit 16ba317Copy full SHA for 16ba317
spec/bashly/settings_spec.rb
@@ -36,6 +36,21 @@
36
end
37
38
39
+ context 'when BASHLY_SETTINGS_PATH is set' do
40
+ before do
41
+ reset_tmp_dir
42
+ File.write 'spec/tmp/my-settings.yml', 'source_dir: from-var'
43
+ ENV['BASHLY_SETTINGS_PATH'] = 'spec/tmp/my-settings.yml'
44
+ subject.source_dir = nil
45
+ end
46
+
47
+ after { ENV['BASHLY_SETTINGS_PATH'] = nil }
48
49
+ it 'returns the value from the settings file' do
50
+ expect(subject.source_dir).to eq 'from-var'
51
52
53
54
context 'when its corresponding env var is set' do
55
original_value = ENV['BASHLY_TAB_INDENT']
56
0 commit comments