crowbar/barclamp-crowbar — pull request #616 by cloudedge (2013-07-20 18:21:10+00:00)
Title: Add rspec tests to framework models [1/1]

I wanted to learn from rspec tests to the system to get more experience with rspec (vs. unit tests).

While better than unit, I find them not so great (and very slow) compared to the BDD testing.

For now, I'm going to focus on adding BDD system level tests for the UI and API instead of rspec.

When I find there are clear model validations needed, I will add rspec tests.

crowbar_framework/app/models/node.rb | 4 +-
crowbar_framework/spec/models/node_role_spec | 17 ++++----
crowbar_framework/spec/models/node_spec.rb | 46 ++++++++++++++++++++
.../shared_contexts/base_deployement_nodes.rb | 15 +++++++
4 files changed, 72 insertions(+), 10 deletions(-)

Crowbar-Pull-ID: a8dcb0b1f51bb0c4be38a4c93c44b7738e53e79d

Crowbar-Release: development