Skip to content

Tidy up the tests #1423

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
Jan 12, 2016
Merged

Tidy up the tests #1423

merged 1 commit into from
Jan 12, 2016

Conversation

Empact
Copy link
Contributor

@Empact Empact commented Jan 11, 2016

  • Use assert_nil where appropriate - assert_nil is equivalent to assert_equal with nil as the expectation, so the failure message should be the same. http://apidock.com/ruby/Test/Unit/Assertions/assert_nil
  • Lead with the expected value in collection_serializer_test.rb, etc
    so that expected/actual in test failure messages are not reversed

* Use assert_nil where appropriate
* Lead with the expected value in collection_serializer_test.rb, etc
 so that expected/actual in test failure messages are not reversed
bf4 added a commit that referenced this pull request Jan 12, 2016
@bf4 bf4 merged commit 34e5faa into rails-api:master Jan 12, 2016
@bf4
Copy link
Member

bf4 commented Jan 12, 2016

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants