sub/avm/lib/avm/rspec/source_generator.rb in eac_tools-0.37.0 vs sub/avm/lib/avm/rspec/source_generator.rb in eac_tools-0.37.1
- old
+ new
@@ -4,12 +4,12 @@
module Avm
module Rspec
module SourceGenerator
# @return [Avm::Sources::Base]
- def avm_source(stereotype_name, target_path = nil)
- target_path ||= temp_dir.join('generated_app')
- ::Avm::Registry.source_generators.detect(stereotype_name, target_path).perform
+ def avm_source(stereotype_name, options = {})
+ target_path ||= options.delete(:target_path) || temp_dir.join('generated_app')
+ ::Avm::Registry.source_generators.detect(stereotype_name, target_path, options).perform
::Avm::Registry.sources.detect(target_path)
end
end
end
end