Commit Graph

21 Commits

Author SHA1 Message Date
Miles Gould
6d8880da2a Test for presence of an unlock link. 2012-09-14 23:07:50 +01:00
Miles Gould
318a0afb35 HAMLify some pages. 2012-09-13 17:02:36 +01:00
Miles Gould
60add22a42 More pre-hamlification tests for views. 2012-09-13 16:40:50 +01:00
Miles Gould
ddc3ae1f01 Don't repeat tests for all links in application spec. 2012-09-12 21:29:07 +01:00
Cesy Avon
7bd0c36162 More unit tests for HAML 2012-09-12 12:42:22 -07:00
Cesy Avon
173aad7dea Adding tests in preparation for HAML 2012-09-12 11:56:22 -07:00
Cesy Avon
0c3bcbdb1e HAML-ify new session 2012-09-12 11:52:38 -07:00
Miles Gould
802c762004 Test for email confirmation page. 2012-09-10 23:38:25 +01:00
Miles Gould
f076438ef9 Test for footer. 2012-09-10 23:06:23 +01:00
Miles Gould
bb3516b19c Use spork to run spec tests.
Spork initialises rails once and thereafter uses that copy of rails to
run spec tests, leading to much faster test runs. On my machine, testing
index.html.haml takes 2s instead of 7s after this change, and `rake`
takes ~9s instead of ~18s.

Instructions once again taken from
http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html, though I
didn't copy any code for this commit.
2012-09-10 14:54:55 +01:00
Miles Gould
1e0545fe30 Use watchr to watch spec, rb, haml and erb files.
- .watchr script mostly nicked from
   http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html
 - I moved the views specs to mirror the location of the files they test
   in /app, in order to keep the .watchr script simple
 - as an added bonus, `rake spec:views` now works :-)
2012-09-10 14:14:45 +01:00
Miles Gould
3956d118fa Port index and application to HAML 2012-09-09 21:26:05 +01:00
Skud
aa2769cd9d Merge pull request #8 from pozorvlak/story14footer
Story 14: include links in footer
2012-09-09 13:18:55 -07:00
Miles Gould
b109bdd0fa Story 14: links in footer. 2012-09-09 20:32:09 +01:00
Miles Gould
bfa783f462 Unify calls to "render" in spec tests. 2012-09-09 20:14:27 +01:00
Miles Gould
5aa3242104 Include project description on index page. 2012-09-09 20:07:07 +01:00
Skud
9792abbf87 made user accounts confirmable by email 2012-09-03 13:16:24 +01:00
Skud
b4ab40a2b3 added failing tests for logging in by username 2012-09-03 12:27:57 +01:00
Skud
ada033ed87 added very basic tests for user model 2012-09-03 12:26:09 +01:00
Skud
321ee98d6e added rspec tests for index.html.erb when logged in 2012-09-03 11:37:55 +01:00
Skud
797846ffef added a simple rspec test for index.html.erb 2012-09-03 11:21:07 +01:00