require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes.rb', __FILE__) describe "String#hash" do it "returns a hash based on a string's length and content" do "abc".hash.should == "abc".hash "abc".hash.should_not == "cba".hash end end