Cucumber update, new tests for VM mgt

Adding in expected behaviour that needs to be implemented.
Refactored a bit to make more generic.

Some other refactoring.

Also, rbenv prefers .ruby-version file these days.

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Amended Given clause for Dashboard

To see a list of VMs, the user must have previous created them. So need a Given for that which adds VMs to the User

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Scaffold for VirtualMachine entity in place

rails g scaffold VirtualMachine hostname:string ip:string user:references

rake db:migrate

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Validations and Relationships

Added validation to VM model.
Added the has_many relationship to User entity

Unit tests pass again

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Page tweaks

I'll be coming back and doing these properly later. Just for trying out stuff.

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Additional tests

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Need to be logged in to perform VM actions

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Associate user with new VM when created

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Prototype page with list of associated VMs

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Refined cucumber to build vm list for signed in user

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Page displays link of VMs

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Dashboard working showing information correctly

Cucumber tests need work, especially the delete scenario.

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Changed where page redirects to after new and delete

Still to do. When I press Delete VM, the Are you Sure? dialog is being shown multiple times. Appears to be related to how many times I navigate to other pages before hand.
Resolve that before moving onto wiring up the actual VM creation in VMWare

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Refactored tests

Tests are passing now

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Added extra check to delete vm scenario

Now checks that VM list goes down by one

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Added missing check of New VM page

Was missing code that checked the layout of the New VM page

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Page tweaks

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Merge branch 'refs/heads/issue0003_Add_machine_entity'