test/test_upgrades.rb in zold-0.14.0 vs test/test_upgrades.rb in zold-0.14.1

- old
+ new

@@ -45,29 +45,29 @@ # test case of running only pending upgrade scripts (i.e. the scripts with # versions greater than those in the version file). def test_pending_scripts_run skip Dir.mktmpdir do |dir| - %w[0.0.1 0.0.2].each do |script_version| + %w[1 2].each do |script_version| create_upgrade_file(dir, script_version) end - create_version_file(dir, '0.0.1') - assert_output(/#{expected_upgrade_script_output('0.0.2')}/) do + create_version_file(dir, '1') + assert_output(/#{expected_upgrade_script_output('2')}/) do run_upgrades(dir) end end end def test_already_ran_scripts_dont_run Dir.mktmpdir do |dir| - %w[0.0.1 0.0.2].each do |script_version| + %w[1 2].each do |script_version| create_upgrade_file(dir, script_version) end - create_version_file(dir, '0.0.1') + create_version_file(dir, '1') out, _err = capture_io do run_upgrades(dir) end - refute_match(/#{expected_upgrade_script_output('0.0.1')}/, out) + refute_match(/#{expected_upgrade_script_output('1')}/, out) end end private