summaryrefslogtreecommitdiff
path: root/spec/ruby/library/pathname/equal_value_spec.rb
blob: 92d4767e7683a425007608f811d295a434b033ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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