- Extract
respond_withinto rspec-api-requests - Lose support for :apply, specific fixtures,
validandinvalidhelpers
Bump updates from rspec-api-expectations and rspec-api-matchers:
- Use
:valueoption to specify to value to filter by inbe_filtered - Rename
:comparing_withto:compare_withinbe_filtered - Accept a symbol in :compare_with (e.g.: compare_with: :<)
Extract all expectations in a separate rspec-api-expectations gem.
Most of the code rewritten to remove complexity given by metadata,
in favor of more modular architecture.
Added valid and invalid to Fixtures module.
respond_to now works even without a surrounding request_with.
Might break compatibility since:
get '..', collection: truereplacesget '..', array: truerequest_withreplacesrequestrequest_withdoes not take an explicit descriptionaccepts_sortoptional field renamed tosort_if
Extract all the matchers in a separate rspec-api-matchers gem.
Allow resources to be nested in has_attributes.
Allow multiple accepts_sort, accepts_filter, accepts_callback per resource.
Use symbols, not strings, as resource names (e.g. :artist, not Artists).
Change the GitHub user for GitHub tests to rspecapi
Add GitHub specs for git-data (refs, tags, trees) and issues (assignees)
Might break compatibility since:
has_attributehas a new syntax that accepts nested attributes and resources (see rspec-api-matchers documentation).respond_togets the whole response in the block, not just the body- resource names must now be singular symbols, not plural strings
Separate JSON type and format in has_attribute.
Might break code like has_attribute :page, :url, since this is now
has_attribute :page, type: {string: :url}, where the only accepted types
are now the 6 basic JSON types
Fix bug on accept_sort
Include specs for local and remote.
Might break compatibility since it requires both dependencies in the Gemfile (e.g., might have conflicts with Rails 3)
Support JSONP callbacks
Add PATCH, HTTP Caching, :comparing_with for filters
Removed dependency from rspec-api-documentation
Add 'encoding: UTF-8' for Ruby < 2 compatibility
Helpers extracted from claudiob/gigs