diff --git a/spec/total_recall/bank_parser_spec.rb b/spec/total_recall/bank_parser_spec.rb index 66334b6..887cd5f 100644 --- a/spec/total_recall/bank_parser_spec.rb +++ b/spec/total_recall/bank_parser_spec.rb @@ -13,9 +13,10 @@ def stubbed_file(path, content) end end - def instance_with_config(config, file: 'config.yml') - stubbed_file(file, config) - described_class.new(file: file) + def instance_with_config(config, options = {}) + options = {file: 'config.yml'}.merge(options) + stubbed_file(options[:file], config) + described_class.new(options) end describe '#config' do