[rspec-users] Write tests for objects with lots of dependencies

2011-11-14 Thread Romain Tribes
Hello, I'm writing a Risk-like webgame (https://github.com/Sephi-Chan/Conquest-on-Rails) and I want to add tests, but it's painful since objects have a lot of dependencies each other. For instance, I have moved the attack logic in a dedicated class (https://github.com/Sephi-Chan/Conquest-on-Ra

[rspec-users] Game development: how to test interactions like an attack?

2012-02-02 Thread Romain Tribes
Hello, I'm writing webgames with Rails and I want to test my code (and even TDD) but I'm really stuck figuring what to test. I read a lot of articles on the subject but I still don't know what to do in my case: how to start? For instance, a simple interaction in most game: a character attacks a

[rspec-users] Game development: how to test interactions like an attack?

2012-02-02 Thread Romain Tribes
Hello, I'm writing webgames with Rails and I want to test my code (and even TDD) but I'm really stuck figuring what to test. I read a lot of articles on the subject but I still don't know what to do in my case: how to start? For instance, a simple interaction in most game: a character attacks a

Re: [rspec-users] Game development: how to test interactions like an attack?

2012-02-02 Thread Romain Tribes
Thanks for your attention and your answers! I worked on that the whole afternoon: it's really timeconsuming when you are not used to test! My code is on GitHub : https://github.com/Sephi-Chan/LearnToTest As I said I read a lot of stuff about testing and TDD. Unfortunately, most of the time it