1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../shared/eql', __FILE__)
# Do not use #should_receive(:eql?) mocks in these specs
# because MSpec uses Hash for mocks and Hash calls #eql?.
describe "Hash#eql?" do
it_behaves_like :hash_eql, :eql?
ruby_version_is '1.8.7' do
it_behaves_like :hash_eql_additional, :eql?
end
ruby_version_is '1.9' do
it_behaves_like :hash_eql_additional_more, :eql?
end
end
|