have a game class, board and player, game holds both board and player objects, and initializes them if appropriate. Players can be told they are playing on a specific board as shortcuts, but board should not be owners of the players.
is a board composed of players? No. So it should not instantiate them nor take care of their life cycle.
Hi, I'm using rspec to run some behaviour tests against my API based on Grape. I use Rack::Test::Methods, which works fine, however, I'm running into some performance issues: If I run the suite on my models (which actually hits the DB), ~40 tests will execute in roughly 0.14 seconds. If I run the API suite, ~30 tests run in 30 seconds. The first 10 or so tests are fast, things go very much downhill after those.
Ok, so after doing a bit of refcounting, I can confirm that my issue comes from uncollectable references (see https://github.com/intridea/grape/issues/665#issuecomment-59482615 for details). I guess I'll keep digging to try and find a solution.
"I tried to buy a Renault in a Renault shop, but there were no salesmen available, so I came into this Ford shop. Why won't you sell me a Renault?!"