summaryrefslogtreecommitdiff
path: root/spec/ruby/core/dir/to_path_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/dir/to_path_spec.rb')
-rw-r--r--spec/ruby/core/dir/to_path_spec.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/ruby/core/dir/to_path_spec.rb b/spec/ruby/core/dir/to_path_spec.rb
index 77404a3dc8..2ed533e757 100644
--- a/spec/ruby/core/dir/to_path_spec.rb
+++ b/spec/ruby/core/dir/to_path_spec.rb
@@ -1,15 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'fixtures/common'
-require_relative 'shared/path'
describe "Dir#to_path" do
- before :all do
- DirSpecs.create_mock_dirs
+ it "is an alias of Dir#path" do
+ Dir.instance_method(:to_path).should == Dir.instance_method(:path)
end
-
- after :all do
- DirSpecs.delete_mock_dirs
- end
-
- it_behaves_like :dir_path, :to_path
end