Coder Social home page Coder Social logo

Comments (4)

ConfusedVorlon avatar ConfusedVorlon commented on June 18, 2024

never mind - rewriting the test as

	expect {
		foo.destroy
	}.to change{bar.reload.updated_at}

makes it pass, so I guess the data is actually getting updated as required. Just a testing quirk...

from acts_as_list.

brendon avatar brendon commented on June 18, 2024

No worries :) Glad you worked it out :) You'd definitely need to reload the record to see the change.

from acts_as_list.

ConfusedVorlon avatar ConfusedVorlon commented on June 18, 2024

wierdly you don't need to reload if you're not using acts_as_list.
that's what threw me; I tested a non-list-model like this first and it passed...

I guess something about the work acts_as_list is doing in the destroy callback...

from acts_as_list.

brendon avatar brendon commented on June 18, 2024

Yea that's strange. Not sure what could be causing it :) Feel free to investigate it further if you think it's worth your time :D

from acts_as_list.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.