File tree 5 files changed +16
-8
lines changed
5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
. ./test/helper.sh
4
4
5
- test_install_dir=" $test_fixtures_dir /install_dir "
5
+ test_install_dir=" $test_fixtures_dir /no_reinstall_test "
6
6
7
7
function setUp()
8
8
{
@@ -22,7 +22,7 @@ function test_no_reinstall_when_ruby_executable_exists()
22
22
23
23
function tearDown()
24
24
{
25
- rm -r " $test_install_dir "
25
+ rm -rf " $test_install_dir "
26
26
}
27
27
28
28
SHUNIT_PARENT=$0 . $SHUNIT2
Original file line number Diff line number Diff line change 3
3
. ./test/helper.sh
4
4
. ./share/ruby-install/functions.sh
5
5
6
- src_dir=" $test_fixtures_dir /src "
6
+ src_dir=" $test_fixtures_dir /apply_patches_test "
7
7
ruby_dir_name=" ruby-1.9.3-p448"
8
8
patches=(" $src_dir /$ruby_dir_name /falcon-gc.diff" )
9
9
@@ -30,7 +30,7 @@ function test_apply_patches()
30
30
31
31
function tearDown()
32
32
{
33
- rm -r " $src_dir / $ruby_dir_name "
33
+ rm -rf " $src_dir "
34
34
}
35
35
36
36
SHUNIT_PARENT=$0 . $SHUNIT2
Original file line number Diff line number Diff line change 3
3
. ./test/helper.sh
4
4
. ./share/ruby-install/functions.sh
5
5
6
+ src_dir=" $test_fixtures_dir /download_patches_test"
7
+
6
8
patches=(" https://gist.github.com/funny-falcon/2981959/raw/ary-queue.diff" " local.patch" )
7
9
ruby_dir_name=" ruby-1.9.3-p448"
8
10
@@ -17,13 +19,16 @@ function test_download_patches()
17
19
18
20
assertTrue " did not download patches to \$ src_dir/\$ ruby_dir_name" \
19
21
' [[ -f "$src_dir/$ruby_dir_name/ary-queue.diff" ]]'
22
+
20
23
assertEquals " did not update \$ patches" \
21
24
" ${patches[0]} " " $src_dir /$ruby_dir_name /ary-queue.diff"
25
+
26
+ ls " $src_dir /$ruby_dir_name "
22
27
}
23
28
24
29
function tearDown()
25
30
{
26
- rm -r " $src_dir / $ruby_dir_name "
31
+ rm -rf " $src_dir "
27
32
}
28
33
29
34
SHUNIT_PARENT=$0 . $SHUNIT2
Original file line number Diff line number Diff line change 3
3
. ./test/helper.sh
4
4
. ./share/ruby-install/ruby-versions.sh
5
5
6
+ ruby_install_cache_dir=" $test_fixtures_dir /download_ruby_versions_file_test"
7
+
6
8
ruby=" ruby"
7
9
file=" stable.txt"
10
+
8
11
expected_path=" $ruby_install_cache_dir /$ruby /$file "
9
12
10
13
function test_download_ruby_versions_file_with_no_parent_dir()
@@ -42,7 +45,7 @@ function test_download_ruby_versions_file_with_existing_file()
42
45
43
46
function tearDown()
44
47
{
45
- rm -rf " $ruby_install_cache_dir / $ruby "
48
+ rm -rf " $ruby_install_cache_dir "
46
49
}
47
50
48
51
SHUNIT_PARENT=$0 . $SHUNIT2
Original file line number Diff line number Diff line change 2
2
3
3
. ./test/helper.sh
4
4
5
- ruby_install_dir=" $test_fixtures_dir /fetch "
5
+ ruby_install_dir=" $test_fixtures_dir /fetch_test "
6
6
7
7
test_file=" $ruby_install_dir /db.txt"
8
8
@@ -61,7 +61,7 @@ function test_fetch_with_unknown_key()
61
61
62
62
function tearDown()
63
63
{
64
- rm -r " $ruby_install_dir "
64
+ rm -rf " $ruby_install_dir "
65
65
}
66
66
67
67
SHUNIT_PARENT=$0 . $SHUNIT2
You can’t perform that action at this time.
0 commit comments