dellcloudedge/barclamp-crowbar — pull request #136 by cloudedge (2012-08-12 23:04:20+00:00)
Title: Proposal controller, BDD testing, HABTM cleanups [1/5]

This push has a lot of different refactoring work
1) proposal controller!
2) new/more BDD tests for the proposal controller and scaffolds
3) fixes for the scaffolds
4) an ActiveRecord class extension to make API calles easier
5) some new unit tests

crowbar_framework/BDD/Win7.bat | 2 +-
crowbar_framework/BDD/barclamp_api.feature | 63 ++++++
crowbar_framework/BDD/bdd_webrat.erl | 15 ++
crowbar_framework/BDD/documentation.feature | 38 ++++
crowbar_framework/BDD/linux.sh | 2 +-
crowbar_framework/BDD/navigation.feature | 7 +-
crowbar_framework/BDD/proposals.feature | 20 ++
crowbar_framework/BDD/scaffolds.feature | 201 ++++++++++++++++++++
.../app/controllers/barclamp_controller.rb | 36 +----
.../app/controllers/proposals_controller.rb | 51 +++++
.../scaffolds/barclamp_dependencies_controller.rb | 19 --
.../controllers/scaffolds/barclamps_controller.rb | 1 +
.../app/controllers/scaffolds/groups_controller.rb | 19 ++
.../controllers/scaffolds/node_roles_controller.rb | 2 +-
.../app/controllers/scaffolds/os_controller.rb | 2 +-
.../scaffolds/os_packages_controller.rb | 4 +-
crowbar_framework/app/models/barclamp.rb | 2 +-
crowbar_framework/app/models/group.rb | 3 +-
crowbar_framework/app/models/node.rb | 2 +-
crowbar_framework/app/models/os.rb | 2 +-
.../app/views/barclamp/_index.html.haml | 2 +-
.../app/views/barclamp/_proposal.html.haml | 26 ---
.../app/views/barclamp/index.html.haml | 2 +-
.../app/views/proposals/_proposal.html.haml | 26 +++
.../config/initializers/api_helpers.rb | 2 +-
crowbar_framework/config/locales/crowbar/en.yml | 3 +
crowbar_framework/config/routes.rb | 9 +-
.../db/migrate/20120731225516_create_nodes.rb | 9 +-
.../db/migrate/20120801190200_scaffold_nav.rb | 4 +-
.../db/migrate/20120805215400_create_groups.rb | 1 +
.../db/migrate/20120808233000_create_os.rb | 1 +
.../migrate/20120808233500_create_os_packages.rb | 1 +
.../20120810233500_create_barclamp_packages.rb | 1 +
crowbar_framework/doc/crowbar.yml | 4 +-
.../doc/default/crowbar/devguide/api.md | 44 +++++
.../doc/default/crowbar/devguide/testing.md | 31 +++-
crowbar_framework/test/unit/barclamp_model_test.rb | 10 +
crowbar_framework/test/unit/group_model_test.rb | 17 ++
crowbar_framework/test/unit/node_model_test.rb | 27 +++
crowbar_framework/test/unit/proposal_model_test.rb | 10 +
40 files changed, 613 insertions(+), 108 deletions(-)