test/lib/eye/patch_test.rb in eye-patch-0.4.0 vs test/lib/eye/patch_test.rb in eye-patch-0.4.1

- old
+ new

@@ -74,9 +74,24 @@ assert_equal process["group"], parsed_process[:group] assert_equal process["config"]["pid_file"].gsub("{ID}", index.to_s), parsed_process[:pid_file] end end + it "loads children-level checks" do + process = @application[:groups]["__default__"][:processes].values.first + process_config = @original["processes"].detect do |p| + p["name"] == process[:name] + end + check = process_config["config"]["monitor_children"]["checks"].first + parsed_check = process[:monitor_children][:checks][check["name"].to_sym] + + %w(times every below).each do |setting| + assert_equal( + Eye::Patch::ValueParser.parse(check["config"][setting]), + parsed_check[setting.to_sym]) + end + end + it "passes application configurations down to processes" do process = @application[:groups]["__default__"][:processes].values.first assert_equal @application[:triggers], process[:triggers] end