Skip to content

Commit e00c09d

Browse files
committed
[DSL] Improved the generated test in the Rake task template
1 parent ce5e127 commit e00c09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace :generate do
169169
subject = #{class_name}.new :foo do
170170
#{options[:option_methods].to_s.split('/').first} 'bar'
171171
end
172-
assert_equal 'bar', subject.to_hash[:#{name}][:foo][:#{options[:option_methods].to_s.split('/').first}]
172+
assert_equal({#{name}: { foo: { #{options[:option_methods].to_s.split('/').first}: 'bar' } }}, subject.to_hash)
173173
end
174174
RUBY
175175
end

0 commit comments

Comments
 (0)