Skip to content

Commit 57bb23c

Browse files
committed
Fix 1.9ism that breaks specs on 1.8
1 parent 5670d22 commit 57bb23c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/support/shared/examples/typed_path.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
shared_examples_for 'typed_path' do |map={}|
1+
shared_examples_for 'typed_path' do |map|
2+
map ||= {}
23
if map.length < 1
34
raise ArgumentError,
45
"type_path shared example requires a hash mapping the type constant name to the directory name: " \
@@ -24,4 +25,4 @@
2425
first_directory.should == directory
2526
end
2627
end
27-
end
28+
end

0 commit comments

Comments
 (0)