diff options
Diffstat (limited to 'spec/ruby/library/pathname/equal_value_spec.rb')
| -rw-r--r-- | spec/ruby/library/pathname/equal_value_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/ruby/library/pathname/equal_value_spec.rb b/spec/ruby/library/pathname/equal_value_spec.rb new file mode 100644 index 0000000000..92d4767e76 --- /dev/null +++ b/spec/ruby/library/pathname/equal_value_spec.rb @@ -0,0 +1,14 @@ +require_relative '../../spec_helper' +require 'pathname' + +describe "Pathname#==" do + + it "returns true when identical paths are used" do + (Pathname.new('') == Pathname.new('')).should == true + end + + it "returns true when identical paths are used" do + (Pathname.new('') == Pathname.new('/usr/local/bin')).should == false + end + +end |
