@@ -17,46 +17,46 @@ teardown() {
17
17
}
18
18
19
19
@test " perform can perform selector on class and quit" {
20
- run_pharo perform String name
20
+ run_pharo perform --pass-raw-arguments -- String name
21
21
assert_success
22
22
assert_output " #String"
23
23
}
24
24
25
25
@test " perform can perform selector on class with arguments and quit" {
26
- run_pharo perform Array with:with: 1 2
26
+ run_pharo perform --pass-raw-arguments -- Array with:with: 1 2
27
27
assert_success
28
28
assert_output " #('1' '2')"
29
29
}
30
30
31
31
@test " perform outputs error if receiver not found" {
32
- run_pharo perform Foo bar
32
+ run_pharo perform --pass-raw-arguments -- Foo bar
33
33
assert_failure
34
34
assert_output --regexp " [[:blank:]]*Unknown class[[:blank:]]*"
35
35
}
36
36
37
37
@test " perform outputs error if selector not found" {
38
- run_pharo perform String bar
38
+ run_pharo perform --pass-raw-arguments -- String bar
39
39
assert_failure
40
40
assert_line --index 0 --regexp " [[:blank:]]*Instance of String class did not understand #bar[[:blank:]]*"
41
41
}
42
42
43
43
@test " perform does not save if flag --save absent" {
44
44
copy_image " test-save.image"
45
- run_pharo perform ClapPharoCommandsTest testValue: Wednesday.
45
+ run_pharo perform --pass-raw-arguments -- ClapPharoCommandsTest testValue: Wednesday.
46
46
assert_success
47
47
48
- run_pharo perform ClapPharoCommandsTest testValue
48
+ run_pharo perform --pass-raw-arguments -- ClapPharoCommandsTest testValue
49
49
assert_success
50
50
refute_output --partial " Wednesday"
51
51
}
52
52
53
53
@test " perform --save preserves changes in the image" {
54
54
copy_image " test-save.image"
55
- run_pharo perform --save ClapPharoCommandsTest testValue: Wednesday.
55
+ run_pharo perform --save --pass-raw-arguments -- ClapPharoCommandsTest testValue: Wednesday.
56
56
assert_success
57
57
58
58
# Check that the evaluation of the previous script has been persisted
59
- run_pharo perform ClapPharoCommandsTest testValue
59
+ run_pharo perform --pass-raw-arguments -- ClapPharoCommandsTest testValue
60
60
assert_success
61
61
assert_output --partial " Wednesday"
62
62
}
0 commit comments