All Questions
Tagged with acts-as-list rspec
3
questions
1
vote
1
answer
77
views
Stack level too deep when calling remove_from_list from acts_as_list gem
I'm running a test that did not fail before upgrading to rails 5.0, but now I am getting stack level too deep, the test is as follows:
describe "item hierarchy" do
before(:each) do
@...
0
votes
1
answer
245
views
How to use remove_from_list method of ActiveRecord with scope as public in the model?
Lets say my model is C . Obj - @c
C has acts_as_list gem defined as
acts_as_list scope: '...'
and scope as :
scope :public -> {where (some_condition)}
When writing rspec for @c.remove_from_list , ...
2
votes
0
answers
199
views
'last' method not returning last item in array in RSpec test - Rails4 Ruby 2.1.2
Was working on an RSpec test that copies @protocol to @dest and saw this:
[26] pry(#<RSpec::ExampleGroups::ProtocolsController::ProtocolCopy>)> @protocol.step_items.count
=> 3
[27] pry(#&...