summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-10-16 14:22:54 +0200
committerChris Schlaeger <chris@linux.com>2014-10-16 14:22:54 +0200
commita92f1d3eb8b8a890df2e2f2846d5beedf78b5955 (patch)
tree105642460455a2c72014702a3b51207f177b5737 /spec
parent1472790af8d903d84811fe369dfca7723c43aa81 (diff)
downloadpostrunner-a92f1d3eb8b8a890df2e2f2846d5beedf78b5955.zip
Fix loading of old archive.yml files.
Diffstat (limited to 'spec')
-rw-r--r--spec/PostRunner_spec.rb5
1 files changed, 5 insertions, 0 deletions
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 ))