We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using version 0.3.0 and want this feature.
Given
ranking = Ranking.create(name: 'Dummy') ranking.items.create(ranking_id: ranking.id, name: 'Thing 1') ranking.items.create(ranking_id: ranking.id, name: 'Thing 2') ranking.items.create(ranking_id: ranking.id, name: 'Thing 3')
When
item = ranking.items.new(name: 'Thing 2.0') item.insert_at(2)
Then
ranking.items.order('position ASC').all.map{|i| [i.position, i.thing.name]}.should == [ [1, "Thing 1"], [2, "Thing 2.0"], [3, "Thing 2"], [4, "Thing 3"] ]
But I got
ranking.items.order('position ASC').all.map{|i| [i.position, i.thing.name]}.should == [ [1, "Thing 1"], [2, "Thing 2.0"], [4, "Thing 2"], [5, "Thing 3"] ]
The text was updated successfully, but these errors were encountered:
8067896
@gawlista Fixed, do update to 0.4.0
0.4.0
Sorry, something went wrong.
No branches or pull requests
I am using version 0.3.0 and want this feature.
Given
When
Then
But I got
The text was updated successfully, but these errors were encountered: