diff options
Diffstat (limited to 'spec/ruby/core/file/exist_spec.rb')
| -rw-r--r-- | spec/ruby/core/file/exist_spec.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/spec/ruby/core/file/exist_spec.rb b/spec/ruby/core/file/exist_spec.rb index 29a410c125..b5600e5b07 100644 --- a/spec/ruby/core/file/exist_spec.rb +++ b/spec/ruby/core/file/exist_spec.rb @@ -1,6 +1,12 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../../../shared/file/exist', __FILE__) +require_relative '../../spec_helper' +require_relative '../../shared/file/exist' describe "File.exist?" do - it_behaves_like(:file_exist, :exist?, File) + it_behaves_like :file_exist, :exist?, File +end + +describe "File.exists?" do + it "has been removed" do + File.should_not.respond_to?(:exists?) + end end |
