Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Rakefile

This code is a minimal (not-)working example of the problem I'm trying to get solved with this stackoverflow question:

The main files of interest are

  • app/models/thing.rb
  • spec/models/thing_spec.rb

You can see the problem if you run (after migrating up the test database)

bundle exec rspec spec/models/thing_spec.rb

If you comment out the has_many :through relationship in things.rb and uncomment the followers method, the tests pass. If you comment out the reference to followers in the after_save hook in things.rb, the tests pass.

Something went wrong with that request. Please try again.