File tree 1 file changed +16
-19
lines changed
1 file changed +16
-19
lines changed Original file line number Diff line number Diff line change 2
2
require File . expand_path ( '../fixtures/common' , __FILE__ )
3
3
4
4
describe "Dir#fileno" do
5
+ platform_is_not :windows do
6
+ before :each do
7
+ @name = tmp ( "fileno" )
8
+ mkdir_p @name
9
+ end
5
10
6
- ruby_version_is "2.2" do
7
- platform_is_not :windows do
8
- before :each do
9
- @name = tmp ( "fileno" )
10
- mkdir_p @name
11
- end
12
-
13
- after :each do
14
- rm_r @name
15
- end
11
+ after :each do
12
+ rm_r @name
13
+ end
16
14
17
- it "returns the file descriptor of the dir" do
18
- dir = Dir . new ( @name )
19
- dir . fileno . should . be_kind_of ( Fixnum )
20
- end
15
+ it "returns the file descriptor of the dir" do
16
+ dir = Dir . new ( @name )
17
+ dir . fileno . should . be_kind_of ( Fixnum )
21
18
end
19
+ end
22
20
23
- platform_is :windows do
24
- it "raises an error" do
25
- dir = Dir . new ( '.' )
26
- lambda { dir . fileno } . to raise_error ( NotImplementedError )
27
- end
21
+ platform_is :windows do
22
+ it "raises an error" do
23
+ dir = Dir . new ( '.' )
24
+ lambda { dir . fileno } . to raise_error ( NotImplementedError )
28
25
end
29
26
end
30
27
end
You can’t perform that action at this time.
0 commit comments