Skip to content

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