@@ -12,25 +12,26 @@ def teardown
1212
1313 def test_manifest_is_up_to_date
1414 pend unless File.exist?("#{root}/Rakefile")
15+ rake = "#{root}/bin/rake"
1516
16- _, status = Open3.capture2e(" rake check_manifest")
17+ _, status = Open3.capture2e(rake, " check_manifest")
1718
1819 unless status.success?
1920 original_contents = File.read("#{root}/Manifest.txt")
2021
2122 # Update the manifest to see if it fixes the problem
22- Open3.capture2e(" rake update_manifest")
23+ Open3.capture2e(rake, " update_manifest")
2324
24- out, status = Open3.capture2e(" rake check_manifest")
25+ out, status = Open3.capture2e(rake, " check_manifest")
2526
2627 # If `rake update_manifest` fixed the problem, that was the original
2728 # issue, otherwise it was an unknown error, so print the error output
2829 if status.success?
2930 File.write("#{root}/Manifest.txt", original_contents)
3031
31- raise "Expected Manifest.txt to be up to date, but it's not. Run `rake update_manifest` to sync it."
32+ raise "Expected Manifest.txt to be up to date, but it's not. Run `bin/ rake update_manifest` to sync it."
3233 else
33- raise "There was an error running `rake check_manifest`: #{out}"
34+ raise "There was an error running `bin/ rake check_manifest`: #{out}"
3435 end
3536 end
3637 end
0 commit comments