Skip to content

Refactor ResourceBuilder, raise exception when no serializer is found #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2017

Conversation

beauby
Copy link
Member

@beauby beauby commented Jun 3, 2017

  • Mark interface as private
  • Allow symbols as explicit classes for serializer inference
  • Add tests

it 'fails with ArgumentError' do
resource = klass.new(object: user)

expect {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using {...} for multi-line blocks.

it 'fails with NameError' do
resource = klass.new(object: user)

expect {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using {...} for multi-line blocks.

@codecov-io
Copy link

codecov-io commented Jun 3, 2017

Codecov Report

Merging #70 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   99.45%   99.46%   +<.01%     
==========================================
  Files          12       12              
  Lines         367      371       +4     
==========================================
+ Hits          365      369       +4     
  Misses          2        2
Impacted Files Coverage Δ
lib/jsonapi/serializable/resource_builder.rb 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a38dcd6...617562d. Read the comment docs.

@beauby beauby force-pushed the exception-no-serializer-found branch from 2c4ac71 to 617562d Compare June 3, 2017 23:20
@beauby beauby merged commit 50bdd1a into master Jun 6, 2017
@beauby beauby deleted the exception-no-serializer-found branch June 6, 2017 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants