devscoutsweden / scoutapi

4 stars 0 forks source link

Unit testing #38

Open mikaelsvensson opened 9 years ago

mikaelsvensson commented 9 years ago

The API lacks unit testing. Implement it.

Reading suggestions: http://matthewlehner.net/rails-api-testing-guidelines/ http://www.emilsoman.com/blog/2013/05/18/building-a-tested/ http://commandercoriander.net/blog/2014/01/04/test-driving-a-json-api-in-rails/ http://ahimmelstoss.github.io/blog/2014/07/27/testing-a-rails-api-with-rspec/ http://guides.rubyonrails.org/testing.html#integration-testing http://www.calicowebdev.com/2011/01/25/rails-3-sqlite-3-in-memory-databases/ http://blog.markstarkman.com/blog/2013/01/23/using-sqlite-to-test-active-record-models/ http://chrisroos.co.uk/blog/2006-02-08-in-memory-sqlite-database-for-rails-testing