summaryrefslogtreecommitdiff
path: root/spec/ruby/core/dir/fileno_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/dir/fileno_spec.rb')
-rw-r--r--spec/ruby/core/dir/fileno_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/dir/fileno_spec.rb b/spec/ruby/core/dir/fileno_spec.rb
index bb84ef5378..3b563eb18f 100644
--- a/spec/ruby/core/dir/fileno_spec.rb
+++ b/spec/ruby/core/dir/fileno_spec.rb
@@ -27,11 +27,11 @@ describe "Dir#fileno" do
if has_dir_fileno
it "returns the file descriptor of the dir" do
- @dir.fileno.should be_kind_of(Integer)
+ @dir.fileno.should.is_a?(Integer)
end
else
it "raises an error when not implemented on the platform" do
- -> { @dir.fileno }.should raise_error(NotImplementedError)
+ -> { @dir.fileno }.should.raise(NotImplementedError)
end
end
end