Skip to content
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

Add spec proving #225 is fixed by #227. #229

Merged
merged 2 commits into from
Aug 14, 2018
Merged

Add spec proving #225 is fixed by #227. #229

merged 2 commits into from
Aug 14, 2018

Conversation

jnfeinstein
Copy link
Collaborator

No description provided.

@jnfeinstein jnfeinstein requested a review from dblock August 14, 2018 01:08
@mongoid-bot
Copy link

1 Warning
⚠️ Unless you’re refactoring existing code, please update CHANGELOG.md.
1 Message
📖 We really appreciate pull requests that demonstrate issues, even without a fix. That said, the next step is to try and fix the failing tests!

Here's an example of a CHANGELOG.md entry:

* [#229](https://github.com/mongoid/mongoid-history/pull/229): Add spec proving #225 is fixed by #227 - [@jnfeinstein](https://github.com/jnfeinstein).

Generated by 🚫 danger

@mongoid-bot
Copy link

mongoid-bot commented Aug 14, 2018

1 Message
📖 We really appreciate pull requests that demonstrate issues, even without a fix. That said, the next step is to try and fix the failing tests!

Generated by 🚫 danger

@coveralls
Copy link

coveralls commented Aug 14, 2018

Coverage Status

Coverage decreased (-0.05%) to 99.676% when pulling 11c27d9 on jnfeinstein:master into 7635d36 on mongoid:master.

CHANGELOG.md Outdated
@@ -1,6 +1,7 @@
### 0.8.2 (Next)

* [#227](https://github.com/mongoid/mongoid-history/pull/227): Store options in inheritable class attributes - [@jnfeinstein](https://github.com/jnfeinstein).
* [#229](https://github.com/mongoid/mongoid-history/pull/229): Add spec proving #225 is fixed by #227 - [@jnfeinstein](https://github.com/jnfeinstein).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Generally no need a changelog for spec, but change this into "Fixed inheritance of history_trackable_options." and link to #225.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Danger wont pass without it. What's the fix?

@@ -802,4 +802,38 @@ class Fish
end.to change(Tracker, :count).by(1)
end
end

context "extending a #{Mongoid::History::Trackable}" do
Copy link
Collaborator

Choose a reason for hiding this comment

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

You didn't mean #{} I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did. I should have used described_class, I'll fix that. This makes the output independent of the classname in case it's ever changed.

@dblock
Copy link
Collaborator

dblock commented Aug 14, 2018

Danger is rightfully complaining about the extra period on your changelog line :)

@dblock
Copy link
Collaborator

dblock commented Aug 14, 2018

For multiple referenced issues we comma-separate them:

* [#229](https://github.com/mongoid/mongoid-history/pull/229), [#225](https://github.com/mongoid/mongoid-history/pull/225): Fixed inheritance of `history_trackable_options` - [@jnfeinstein](https://github.com/jnfeinstein).

`context` is more consistent for a non-method spec.
@jnfeinstein
Copy link
Collaborator Author

@dblock updated and passed CI.

@dblock dblock merged commit 8ed7ba1 into mongoid:master Aug 14, 2018
@dblock
Copy link
Collaborator

dblock commented Aug 14, 2018

Merged

@jnfeinstein
Copy link
Collaborator Author

@dblock shall I release 0.8.2?

@dblock
Copy link
Collaborator

dblock commented Aug 15, 2018

Don't wait for my permission @jnfeinstein, maintainers release at will, amen.

@jnfeinstein
Copy link
Collaborator Author

@dblock thanks for the vote of confidence. Sorry for delay, was actually vacationing in NYC.

Any concerns about this being a breaking change? Anybody relying on this bug for configuration could be surprised by the change. However it would also correct the configuration that they would have correctly mis-configured. I could see it being 0.8.3 or 0.9.0.

@dblock
Copy link
Collaborator

dblock commented Aug 29, 2018

Feel free to PR a paragraph for https://github.com/mongoid/mongoid-history/blob/master/UPGRADING.md with a 0.9.0 version bump, your call.

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.

4 participants