also removed the default scaffold action 'update', since it would obviously break if used.
it now accepts the same parameters as acts_as_list
adds shoulda macros for common ActiveRecord plugins
Added mocha gem requirement to test environment, and unpacked
Added factory_girl to required gems, and also unpacked. Inadvertently unpacked the will-paginate gem at the same time, since it was also a required gem. This is good, though.
Got rid of tests for non-existant actions Ensured success for admin/member, and redirect to login for visitors
This was affecting tests because db:test:prepare copies schema.rb to setup the test environment, and it was missing the article_id addition to documents table.
Got rid of restful tests for non-existant actions. Ensured success for admins and members, and redirect to login for visitors. Updated fixture so that values create a valid image record
tested that all actions except 'show' succeed as admin, return unauthorized as members (non-admins) and redirect to login for visitors (not logged in). This uncovered a glitch where visitors weren't required to be logged on for pages, but *were* required to have an admin role. Show action should succeed for admins, members, and visitors. Fixed Page.pages_menu to return  instead of nil when it finds an empty set. This fixed a view that was relying on an array. Fixed index test to check for viewable, editable, and parents arrays, instead of the default pages array.
updated create_user to include a :name attribute as required by validations
create_user was attempting to create a user without the now-required :name attribute.