Enabling rspec and adding tests
Merge pull request #2 from ershad/master

Adding tests.