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 a test case for previous_changes #931

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rspeicher
Copy link

@rspeicher rspeicher commented Dec 6, 2018

This is attempting to reproduce an odd behavior we're seeing in GitLab at https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5107#note_122281994.

The problem we're seeing may be an odd interaction between ActiveRecord and some other gem we're using, but I want to first verify it's not an issue with acts-as-taggable-on itself.

This may be related to #475 (comment).

@@ -37,6 +37,14 @@
expect(@taggable.tag_list_change).to eq([['awesome', 'epic'], ['one']])
end

it 'populates previous_changes correctly' do
@taggable.save!
@taggable.update!(tag_list: %w(two three four))
Copy link

Choose a reason for hiding this comment

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

The test fails if I add @taggable.reload here.

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.

2 participants