Report abuse

normal MRI

1
2
3
4
5
6
gauss:rubyspec brian$ ruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb              
........................

Finished in 0.008407 seconds

1 file, 24 examples, 59 expectations, 0 failures, 0 errors

--no-ruby_bug on MRI

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
gauss:rubyspec brian$ ruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb --no-ruby_bug
............FF.....FF.....FF......

1)
StringIO#reopen when passed [Object, Object] resets self's position to 0 FAILED
Expected 5
 to have same value and type as 0

./library/stringio/reopen_spec.rb:117
./library/stringio/reopen_spec.rb:110:in `all?'
./library/stringio/reopen_spec.rb:61
../mspec/bin/mspec-run:8

2)
StringIO#reopen when passed [Object, Object] resets self's line number to 0 FAILED
Expected 1
 to have same value and type as 0

./library/stringio/reopen_spec.rb:123
./library/stringio/reopen_spec.rb:61
../mspec/bin/mspec-run:8

3)
StringIO#reopen when passed [String] resets self's position to 0 FAILED
Expected 5
 to have same value and type as 0

./library/stringio/reopen_spec.rb:175
./library/stringio/reopen_spec.rb:140:in `all?'
./library/stringio/reopen_spec.rb:149
../mspec/bin/mspec-run:8

4)
StringIO#reopen when passed [String] resets self's line number to 0 FAILED
Expected 1
 to have same value and type as 0

./library/stringio/reopen_spec.rb:181
./library/stringio/reopen_spec.rb:149
../mspec/bin/mspec-run:8

5)
StringIO#reopen when passed no arguments resets self's position to 0 FAILED
Expected 5
 to have same value and type as 0

./library/stringio/reopen_spec.rb:231
./library/stringio/reopen_spec.rb:215
../mspec/bin/mspec-run:8

6)
StringIO#reopen when passed no arguments resets self's line number to 0 FAILED
Expected 1
 to have same value and type as 0

./library/stringio/reopen_spec.rb:237
./library/stringio/reopen_spec.rb:215
../mspec/bin/mspec-run:8

Finished in 0.011930 seconds

1 file, 34 examples, 76 expectations, 6 failures, 0 errors

--report on MRI

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
gauss:rubyspec brian$ ruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb --report
........................

Finished in 0.008419 seconds

1 file, 24 examples, 59 expectations, 0 failures, 0 errors


4 Specs guarded with: ruby_bug #, 1.8.6.114:

StringIO#reopen reopens a stream when given a String argument
StringIO#reopen reopens a stream in append mode when flagged as such
StringIO#reopen reopens and truncate when reopened in write mode
StringIO#reopen truncates the given string, not a copy

6 Specs guarded with: ruby_bug #, 1.8.7:

StringIO#reopen when passed [Object, Object] resets self's position to 0
StringIO#reopen when passed [Object, Object] resets self's line number to 0
StringIO#reopen when passed [String] resets self's position to 0
StringIO#reopen when passed [String] resets self's line number to 0
StringIO#reopen when passed no arguments resets self's position to 0
StringIO#reopen when passed no arguments resets self's line number to 0

--report on JRuby

1
2
3
4
5
6
gauss:rubyspec brian$ jruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb --report
..................................

Finished in 0.200502 seconds

1 file, 34 examples, 76 expectations, 0 failures, 0 errors