diff options
Diffstat (limited to 'spec/ruby/library/pathname/equal_value_spec.rb')
-rw-r--r-- | spec/ruby/library/pathname/equal_value_spec.rb | 15 |
1 files changed, 15 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..afcdb08de8 --- /dev/null +++ b/spec/ruby/library/pathname/equal_value_spec.rb @@ -0,0 +1,15 @@ +require File.expand_path('../../../spec_helper', __FILE__) +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 + |