blob: f3201e2f4f1324d08dc8a98a382906985abf4cf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require File.expand_path('../../../spec_helper', __FILE__)
require 'pathname'
describe "Pathname#hash" do
it "is equal to the hash of the pathname" do
Pathname.new('/usr/local/bin/').hash.should == '/usr/local/bin/'.hash
end
it "is not equal the hash of a different pathname" do
Pathname.new('/usr/local/bin/').hash.should_not == '/usr/bin/'.hash
end
end
|