summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/shared/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/shared/path.rb')
-rw-r--r--spec/ruby/core/file/shared/path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/shared/path.rb b/spec/ruby/core/file/shared/path.rb
index 5a9fe1b0c5..6c6f7d4234 100644
--- a/spec/ruby/core/file/shared/path.rb
+++ b/spec/ruby/core/file/shared/path.rb
@@ -12,7 +12,7 @@ describe :file_path, shared: true do
it "returns a String" do
@file = File.new @path
- @file.send(@method).should be_an_instance_of(String)
+ @file.send(@method).should.instance_of?(String)
end
it "returns a different String on every call" do