test/runner_test.rb in hydra-0.20.0 vs test/runner_test.rb in hydra-0.21.0
- old
+ new
@@ -48,20 +48,21 @@
results = runner.run_file(json_file)
assert results =~ /trailing comma/, results
end
should "run two rspec tests" do
+ puts "First test"
runner = Hydra::Runner.new(:io => File.new('/dev/null', 'w'))
runner.run_file(rspec_file)
assert File.exists?(target_file)
assert_equal "HYDRA", File.read(target_file)
FileUtils.rm_f(target_file)
runner.run_file(alternate_rspec_file)
assert File.exists?(alternate_target_file)
assert_equal "HYDRA", File.read(alternate_target_file)
- assert !File.exists?(target_file)
+ assert !File.exists?(target_file), "Tests are double running!"
end
should "run rspec tests with pending examples" do
runner = Hydra::Runner.new(:io => File.new('/dev/null', 'w'))
assert File.exists?(rspec_file_with_pending)