spec/lib/rambling/trie/serializers/zip_spec.rb in rambling-trie-2.3.1 vs spec/lib/rambling/trie/serializers/zip_spec.rb in rambling-trie-2.4.0

- old
+ new

@@ -6,17 +6,17 @@ { yaml: YAML.method(:dump), yml: YAML.method(:dump), marshal: Marshal.method(:dump), file: Marshal.method(:dump), - }.each do |format, dump_method| - context "with '.#{format}'" do + }.each do |file_format, dump_method| + context "with '.#{file_format}'" do it_behaves_like 'a serializer' do let(:properties) { Rambling::Trie::Configuration::Properties.new } let(:serializer) { described_class.new properties } - let(:format) { :zip } + let(:file_format) { :zip } - let(:filepath) { File.join tmp_path, "trie-root.#{format}.zip" } + let(:filepath) { File.join tmp_path, "trie-root.#{file_format}.zip" } let(:format_content) { ->(content) { zip dump_method.call content } } let(:filename) { File.basename(filepath).gsub %r{\.zip}, '' } before { properties.tmp_path = tmp_path } end