diff options
Diffstat (limited to 'spec/ruby/core/file/lstat_spec.rb')
| -rw-r--r-- | spec/ruby/core/file/lstat_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/file/lstat_spec.rb b/spec/ruby/core/file/lstat_spec.rb index 6657bfa00e..a5ea9d15a5 100644 --- a/spec/ruby/core/file/lstat_spec.rb +++ b/spec/ruby/core/file/lstat_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../shared/stat', __FILE__) +require_relative '../../spec_helper' +require_relative 'shared/stat' describe "File.lstat" do it_behaves_like :file_stat, :lstat @@ -22,8 +22,8 @@ describe "File.lstat" do it "returns a File::Stat object with symlink properties for a symlink" do st = File.lstat(@link) - st.symlink?.should == true - st.file?.should == false + st.should.symlink? + st.should_not.file? end end end |
