Skip to content

Commit

Permalink
Added test for handling config file values containing "=" in their text
Browse files Browse the repository at this point in the history
  • Loading branch information
David le Blanc authored and Stratus3D committed Jan 27, 2022
1 parent afd6224 commit b2b71e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/get_asdf_config_value.bats
Expand Up @@ -38,3 +38,11 @@ teardown() {
[ $(get_asdf_config_value "key1") = "value1" ]
[ $(get_asdf_config_value "legacy_version_file") = "yes" ]
}

@test "get_config returns config file complete value including '=' symbols" {
cat >> $ASDF_CONFIG_FILE <<-'EOM'
key3 = VAR=val
EOM

[ $(get_asdf_config_value "key3") = "VAR=val" ]
}

0 comments on commit b2b71e6

Please sign in to comment.