spec/json_spec.rb in strong_json-1.0.0 vs spec/json_spec.rb in strong_json-1.0.1
- old
+ new
@@ -143,9 +143,17 @@
literal_pattern,
string_pattern,
optional(string)
)
rule = { "pattern": pattern, "glob": optional(enum(string, array(string))) }
+ regexp_pattern = {
+ "pattern": string,
+ "multiline": optional(boolean),
+ "case_sensitive": optional(boolean)
+ }
+ token_pattern = { "token": string, "case_sensitive": optional(boolean) }
+ literal_pattern = { "literal": string }
+ string_pattern = string
MSG
}
end
end