Fix 1.9ism that breaks specs on 1.8

This commit is contained in:
James Lee
2012-11-08 09:55:29 -06:00
parent 5670d2266b
commit 57bb23ce3d
+3 -2
View File
@@ -1,4 +1,5 @@
shared_examples_for 'typed_path' do |map={}|
shared_examples_for 'typed_path' do |map|
map ||= {}
if map.length < 1
raise ArgumentError,
"type_path shared example requires a hash mapping the type constant name to the directory name: " \
@@ -24,4 +25,4 @@ shared_examples_for 'typed_path' do |map={}|
first_directory.should == directory
end
end
end
end