spec/spec_helper.rb in rambling-trie-1.0.3 vs spec/spec_helper.rb in rambling-trie-2.0.0
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
require 'simplecov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
- Coveralls::SimpleCov::Formatter
+ Coveralls::SimpleCov::Formatter,
]
SimpleCov.start do
add_filter '/spec/'
end
@@ -24,11 +26,12 @@
config.run_all_when_everything_filtered = true
config.raise_errors_for_deprecations!
end
require 'support/config'
-require 'support/shared_examples/a_compressible_trie'
-require 'support/shared_examples/a_serializable_trie'
-require 'support/shared_examples/a_serializer'
-require 'support/shared_examples/a_trie_data_structure'
-require 'support/shared_examples/a_trie_node'
-require 'support/shared_examples/a_trie_node_implementation'
+
+%w(
+ a_compressible_trie a_serializable_trie a_serializer a_trie_data_structure
+ a_trie_node a_trie_node_implementation
+).each do |name|
+ require File.join('support', 'shared_examples', name)
+end