summaryrefslogtreecommitdiff
path: root/spec/PostRunner_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/PostRunner_spec.rb')
-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 ))