File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ + bashly generate
2+ creating user files in src
3+ skipped src/root_command.sh (exists)
4+ created ./download
5+ run ./download --help to test your bash script
16+ ./download some_source
27common_function called
38cloud_function called
Original file line number Diff line number Diff line change 107107 context 'when set using env var as a comma delimited string' do
108108 before { ENV [ 'BASHLY_EXTRA_LIB_DIRS' ] = 'one,two' }
109109 after { ENV [ 'BASHLY_EXTRA_LIB_DIRS' ] = nil }
110-
110+
111111 it 'converts comma delimited string to an array' do
112112 expect ( subject . extra_lib_dirs ) . to match_array %w[ one two ]
113113 end
114114 end
115115
116116 context 'when provided as an array' do
117117 let ( :config ) { Config . new ( { 'extra_lib_dirs' => %w[ item1 item2 ] } ) }
118-
118+
119119 it 'returns the array as is' do
120120 allow ( subject ) . to receive ( :user_settings ) . and_return ( config )
121121 expect ( subject . extra_lib_dirs ) . to match_array %w[ item1 item2 ]
You can’t perform that action at this time.
0 commit comments