Commit Graph
47 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 7111c9e2bc Fix extra paragraph break in index page. 2012-09-10 22:51:13 +01:00
Miles Gould 5d50bb9823 HAMLify the links in the footer. 2012-09-10 22:49:29 +01:00
Miles Gould 15ce32e786 Only stash unindexed changes if there are any.
This allows `git commit --amend` to work properly.
2012-09-10 17:42:29 +01:00
Miles Gould bbcd272d1c Document CI setup in README.
This probably isn't the best place for it, but I don't want to put that
info on the wiki unless this branch is merged.
2012-09-10 15:47:10 +01:00
Miles Gould b173aad6b7 Added pre-commit hook script to run spec tests.
Based on instructions found at
http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/

I have no idea how portable this will be.
2012-09-10 15:29:49 +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 40f111001c Add a "rake watchr" task.
As before, code nicked from
http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html
2012-09-10 14:24:01 +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 abcca8071c Add watchr to dev setup.
Watchr is an automatic testing program, which runs relevant tests every
time you save a file.
2012-09-10 14:01:35 +01:00
Miles Gould 31662884ab Only install test gems on dev machines. 2012-09-10 14:01:35 +01:00
Skud c98c5c0d81 Merge pull request #9 from pozorvlak/add_haml
Port index and application to HAML
2012-09-09 13:42:59 -07:00
Miles Gould 583d075ce5 Port passwords forms to HAML. 2012-09-09 21:26:05 +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
Skud c7e701ffe8 Merge pull request #7 from pozorvlak/story15description
Story 15: include project description on index page
2012-09-09 12:17:36 -07: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
Cesy Avon 1e907d4cb9 Fixing failing unit test and making rspec tests the default 2012-09-07 06:09:48 -07:00
Skud 8f9c8e5b76 Merge pull request #5 from Skud/story6login
Story6login
2012-09-04 09:11:36 -07:00
Skud a1a53de27f added mail settings for development environment 2012-09-04 17:09:57 +01:00
Skud 523d65e82c Merge pull request #4 from Skud/story6login
Story 6 - signup/login - as worked on by me and Cesy and checked over by both of us.
2012-09-04 08:22:26 -07:00
Skud 9792abbf87 made user accounts confirmable by email 2012-09-03 13:16:24 +01:00
Skud 1fe0cda804 generated rdoc 2012-09-03 12:43:11 +01:00
Skud dcd4f79bdc You can now login using either username or email 2012-09-03 12:38:58 +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
Skud 89cb3c276f added devise and rspec, set up very basic login/signup links on homepage 2012-09-03 10:49:45 +01:00
Skud e019bf67dd Merge pull request #3 from cesy/devbasics
I've reviewed this and got it running on my dev environment. Docs on how to make it work on your dev environment (or on our server) are at https://github.com/Growstuff/project/wiki/Development-pre-requisites
2012-08-27 00:24:14 -07:00
Cesy Avon 8190af434f Getting the basic site working 2012-08-23 13:09:52 -07:00
Cesy Avon 72b16c10cf Adding a home page 2012-08-23 12:56:37 -07:00
Cesy Avon 95145f2869 Moving development to top level directory 2012-08-23 10:41:00 -07:00
Skud 9cf506869c Added license (AGPLv3) 2012-08-23 07:38:57 +01:00
Ricky Amianym cc09f008d2 Created default rails app 2012-08-22 00:09:45 -04:00
Cesy Avon 736589709c Updating readme 2012-08-17 14:12:29 -07:00
Skud 391d1a84ef first commit 2012-08-08 07:14:45 +02:00