From 0e5b39985e1293659b4c4742c83e7a6c6e8f93df Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Fri, 23 Dec 2011 20:47:13 +0200 Subject: [PATCH] Clarify tests. Write autostart docs. Refs #65, #53 --- doc/README_FOR_APP | 16 ++++++++++++++-- spec/controllers/build_lists_controller_spec.rb | 8 ++++---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/doc/README_FOR_APP b/doc/README_FOR_APP index fbcff3042..bbed67ad7 100644 --- a/doc/README_FOR_APP +++ b/doc/README_FOR_APP @@ -1,8 +1,20 @@ === Basic bootstrap + * rake db:drop db:setup + == === Setup autostart -Add to /etc/rc.d/rc.local following /srv/rosa_build/current/bin/autostart.sh -== +Add to /etc/rc.d/rc.local + + /srv/rosa_build/current/bin/autostart.sh + +Add to /etc/rc.d/rc.sysinit + + # force run rc.local + if [ -f /etc/rc.local ]; then + . /etc/rc.local + fi + +== diff --git a/spec/controllers/build_lists_controller_spec.rb b/spec/controllers/build_lists_controller_spec.rb index d6d2172a7..c05d24e50 100644 --- a/spec/controllers/build_lists_controller_spec.rb +++ b/spec/controllers/build_lists_controller_spec.rb @@ -123,7 +123,7 @@ describe BuildListsController do it_should_behave_like 'create build list' end - context 'if user is project member' do + context 'if user is project read member' do before(:each) {set_session_for(@member_user)} it_should_behave_like 'show build list' it_should_behave_like 'not create build list' @@ -145,7 +145,7 @@ describe BuildListsController do it_should_behave_like 'create build list' end - context 'if user is project member' do + context 'if user is project read member' do before(:each) {set_session_for(@member_user)} it_should_behave_like 'show build list' it_should_behave_like 'not create build list' @@ -209,7 +209,7 @@ describe BuildListsController do it_should_behave_like 'create build list' end - context 'if user is group member' do + context 'if user is group read member' do before(:each) {set_session_for(@member_user)} it_should_behave_like 'show build list' it_should_behave_like 'not create build list' @@ -231,7 +231,7 @@ describe BuildListsController do it_should_behave_like 'create build list' end - context 'if user is group member' do + context 'if user is group read member' do before(:each) {set_session_for(@member_user)} it_should_behave_like 'show build list' it_should_behave_like 'not create build list'