Fix 1.9ism that breaks specs on 1.8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user