Module: GovukSchemas::AssertMatchers

Defined in:
lib/govuk_schemas/assert_matchers.rb

Instance Method Summary collapse

Instance Method Details

#assert_valid_against_frontend_schema(payload, schema_name) ⇒ Object



13
14
15
# File 'lib/govuk_schemas/assert_matchers.rb', line 13

def assert_valid_against_frontend_schema(payload, schema_name)
  assert_valid_against_schema(payload, schema_name, "frontend")
end


9
10
11
# File 'lib/govuk_schemas/assert_matchers.rb', line 9

def assert_valid_against_links_schema(payload, schema_name)
  assert_valid_against_schema(payload, schema_name, "links")
end

#assert_valid_against_notification_schema(payload, schema_name) ⇒ Object



17
18
19
# File 'lib/govuk_schemas/assert_matchers.rb', line 17

def assert_valid_against_notification_schema(payload, schema_name)
  assert_valid_against_schema(payload, schema_name, "notification")
end

#assert_valid_against_publisher_schema(payload, schema_name) ⇒ Object



5
6
7
# File 'lib/govuk_schemas/assert_matchers.rb', line 5

def assert_valid_against_publisher_schema(payload, schema_name)
  assert_valid_against_schema(payload, schema_name, "publisher")
end