diff options
Diffstat (limited to 'spec/ruby/core/dir/to_path_spec.rb')
| -rw-r--r-- | spec/ruby/core/dir/to_path_spec.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/ruby/core/dir/to_path_spec.rb b/spec/ruby/core/dir/to_path_spec.rb index 85609fbfff..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 File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/common', __FILE__) -require File.expand_path('../shared/path', __FILE__) +require_relative '../../spec_helper' 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 |
