Renaming createable and updateable to 'creatable' and 'updatable'#245
Renaming createable and updateable to 'creatable' and 'updatable'#245lgebhardt merged 7 commits intoJSONAPI-Resources:masterfrom adomokos:renaming-createable-and-updateable
Conversation
|
Thanks for doing this. I try to keep the code coverage at 100% (minus a few select lines). You can run the coverage reports like this: COVERAGE=true rake testThat will generate a coverage report in a coverage directory. When I run it I see 9 lines that are not being executed by the current tests, including the new |
|
I am happy to make these a 100%, but how would you deal with the |
|
Thanks. I'm happy to accept warnings in the output. In fact there are quite a few in there currently. Maybe there's a better way, but I'm not too anxious to pursue it at this point. |
|
@lgebhardt: I added a couple of more tests to increase the coverage. I was able to suspend the deprecation warning. I could try to add more tesst for increasing the test coverage, but after some period of time this code should go away, and coverage should be back at 100%. Is there a way I could exclude methods from the coverage report? This is what I have: |
|
You can wrap lines that you don't want to count towards the coverage with |
Renaming createable and updateable to 'creatable' and 'updatable'
|
Thanks! |
|
Thank you, @lgebhardt! 👍 |


This was a bit tough as the client can implement the
creatable_fieldsandupdatable_fields. I tinkered with many options, usingmethod_missingwas the least invasive option.