dellcloudedge/barclamp-crowbar — pull request #226 by galthaus (2012-10-06 17:14:40+00:00)
Title: Refactor locking into a single place and update unit tests to validate it. [1/3]

crowbar_framework/app/models/crowbar_service.rb | 4 +-
crowbar_framework/app/models/crowbar_utils.rb | 51 +++++++++++++++++
crowbar_framework/app/models/proposal_queue.rb | 49 +++-------------
crowbar_framework/app/models/service_object.rb | 29 ----------
.../spec/models/crowbar_utils_spec.rb | 60 ++++++++++++++++++++
.../spec/models/proposal_queue_item_spec.rb | 21 +++++++
.../spec/models/proposal_queue_spec.rb | 24 ++++++++
.../spec/models/service_object_spec.rb | 56 +++++-------------
crowbar_framework/spec/models/user_spec.rb | 15 +++++
9 files changed, 199 insertions(+), 110 deletions(-)