From a92f1d3eb8b8a890df2e2f2846d5beedf78b5955 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Thu, 16 Oct 2014 14:22:54 +0200 Subject: Fix loading of old archive.yml files. --- spec/PostRunner_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb index c3cbf64..20dc4f6 100644 --- a/spec/PostRunner_spec.rb +++ b/spec/PostRunner_spec.rb @@ -130,6 +130,11 @@ describe PostRunner::Main do rc = PostRunner::RuntimeConfig.new(@db_dir) rc.get_option(:version).should == '0.0.0' + archive_file = File.join(@db_dir, 'archive.yml') + archive = YAML.load_file(archive_file) + archive.each { |a| a.remove_instance_variable:@sport } + File.write(archive_file, archive.to_yaml) + # Run some command. postrunner(%w( list )) -- cgit v1.2.3