Fixes bak assertions

This commit is contained in:
Bruno Pinto 2015-01-14 09:07:32 -02:00
parent c9e22789d5
commit 8bf09e807e

View File

@ -65,7 +65,7 @@ function describe_bak -d 'Testing bak plugin'
touch a touch a
cpbak a cpbak a
expect (ls | sort) --to-equal (echo -e 'a' (__bak_name a) | sort) expect (ls -p) --to-contain (echo 'a'\n(__bak_name a))
end end
function it_copies_multiple_files function it_copies_multiple_files
@ -77,7 +77,7 @@ function describe_bak -d 'Testing bak plugin'
set files_bak $files_bak (__bak_name $f) set files_bak $files_bak (__bak_name $f)
end end
expect (ls | sort) --to-contain $files $file_bak expect (ls) --to-contain $files $file_bak
end end
function it_uncopies_a_single_file function it_uncopies_a_single_file
@ -86,7 +86,7 @@ function describe_bak -d 'Testing bak plugin'
rm a rm a
uncpbak (ls) uncpbak (ls)
expect (ls | sort) --to-equal (echo -e 'a' (__bak_name a) | sort) expect (ls) --to-contain (printf 'a' (__bak_name a))
end end
function it_uncopies_multiple_files function it_uncopies_multiple_files
@ -104,7 +104,7 @@ function describe_bak -d 'Testing bak plugin'
rmdir a rmdir a
uncpbak (ls -p) uncpbak (ls -p)
expect (ls -p | sort) --to-equal (echo -e (__bak_name a)'/' 'a/') expect (ls -p) --to-contain (echo 'a/'\n(__bak_name a)'/')
end end
end end