andrewhavens / mad_chatter

Mad Chatter is a fun, easy to customize chat server written in Ruby utilizing HTML 5 Web Sockets
MIT License
83 stars 13 forks source link

Added very basic RSpec rig to the MadChatter project. #1

Closed blt closed 12 years ago

blt commented 12 years ago

Among the many, many testing libraries for Ruby rspec is one of the more popular, with an active community of folks pumping out code so you don't have to (until you do). For instance, Guard is a related tool that will use filesystem notifications to re-run certain commands; the Guardfile in this project will now run specs when source-code and spec-code is changed. Just run 'guard' in the top-level of the project.

The actual spec/message_spec.rb is not too bright, but it's a start. No attempt is made at integration testing, though when EventMachine has to be wrangled consider:

Signed-off-by: Brian L. Troutwine brian@troutwine.us

andrewhavens commented 12 years ago

Awesome!! Thank you! This will definitely get me headed in the right direction.