test/runner_test.rb in hydra-0.16.4 vs test/runner_test.rb in hydra-0.16.5
- old
+ new
@@ -49,9 +49,21 @@
assert File.exists?(alternate_target_file)
assert_equal "HYDRA", File.read(alternate_target_file)
assert !File.exists?(target_file)
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)
+
+ runner.run_file(rspec_file_with_pending)
+
+ assert File.exists?(target_file)
+ assert_equal "HYDRA", File.read(target_file)
+
+ FileUtils.rm_f(target_file)
+ end
+
should "run two cucumber tests" do
# because of all the crap cucumber pulls in
# we run this in a fork to not contaminate
# the main test environment
pid = Process.fork do