test/runner_test.rb in hydra-0.17.0 vs test/runner_test.rb in hydra-0.18.0

- old
+ new

@@ -35,9 +35,21 @@ end request_a_file_and_verify_completion(pipe, test_file) Process.wait(child) end + should "run a js lint file and find errors" do + runner = Hydra::Runner.new(:io => File.new('/dev/null', 'w')) + results = runner.run_file(javascript_file) + assert results =~ /Missing semicolon/ + end + + should "run a json data file and find errors" do + runner = Hydra::Runner.new(:io => File.new('/dev/null', 'w')) + results = runner.run_file(json_file) + assert results =~ /trailing comma/ + end + should "run two rspec tests" do 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)