[features] dump/restore is a noop

This commit is contained in:
Joe Thornber
2013-06-28 12:19:24 +01:00
parent 2fc95b3a2d
commit 90fb1c4fb5
3 changed files with 32 additions and 12 deletions

View File

@@ -41,3 +41,15 @@ end
Then(/^it should pass with version$/) do
only_processes.last.stdout.chomp.should == tools_version
end
When(/^I dump$/) do
run_simple("thin_dump #{dev_file} -o #{new_dump_file}", false)
end
When(/^I restore$/) do
run_simple("thin_restore -i #{dump_files[-1]} -o #{dev_file}", false)
end
Then(/^dumps ([0-9]+) and ([0-9]+) should be identical$/) do |d1, d2|
run_simple("diff -b #{dump_files[d1.to_i]} #{dump_files[d2.to_i]}", false)
end