Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed May 17, 2016
1 parent 0776538 commit 3519479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Breaking changes:
- [#1662](https://github.com/rails-api/active_model_serializers/pull/1662) Drop support for Rails 4.0 and Ruby 2.0.0. (@remear)

Features:
- [#1677](https://github.com/rails-api/active_model_serializers/pull/1677) Add `assert_schema`, `assert_request_schema`, `assert_request_response_schema`. (@bf4)
- [#1699](https://github.com/rails-api/active_model_serializers/pull/1699) String/Lambda support for conditional attributes/associations (@mtsmfm)
- [#1687](https://github.com/rails-api/active_model_serializers/pull/1687) Only calculate `_cache_digest` (in `cache_key`) when `skip_digest` is false. (@bf4)
- [#1647](https://github.com/rails-api/active_model_serializers/pull/1647) Restrict usage of `serializable_hash` options
Expand Down
2 changes: 2 additions & 0 deletions lib/active_model_serializers/test/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def assert_request_schema(schema_path = nil, message = nil)
assert(matcher.call, matcher.message)
end

# May be renamed
def assert_request_response_schema(schema_path = nil, message = nil)
assert_request_schema(schema_path, message)
assert_response_schema(schema_path, message)
Expand All @@ -35,6 +36,7 @@ def assert_schema(payload, schema_path = nil, message = nil)
class AssertSchema
attr_reader :schema_path, :request, :response, :message, :payload

# Interface may change.
def initialize(schema_path, request, response, message, payload = nil)
require_json_schema!
@request = request
Expand Down

0 comments on commit 3519479

Please sign in to comment.