aeolus-incubator / tim

Web application for managing virtual images to be deployed in the cloud
www.aeolusproject.org
MIT License
3 stars 6 forks source link

Initial factory integration #7

Closed mtaylor closed 12 years ago

mtaylor commented 12 years ago

The initial work to integrate with factory.

Creates Active Resrouce Lib, Setups Factory Girl, Adds Initializer, and updates Target Image to work with ImageFactory create image.

jguiditta commented 12 years ago

rake spec fails for me with:

Run options: include {:locations=>{"./spec/models/target_image_spec.rb"=>[50]}}

ImageManagement::TargetImage ImageFactory interactions Successful Requests should create new target image with factory meta-data (FAILED - 1)

Failures:

1) ImageManagement::TargetImage ImageFactory interactions Successful Requests should create new target image with factory meta-data Failure/Error: ti = Factory.create(:target_image) NoMethodError: undefined method `target=' for #ImageManagement::TargetImage:0x7f4b1ff1a970

./spec/models/target_image_spec.rb:51

Finished in 0.01766 seconds 1 example, 1 failure

Failed examples:

rspec ./spec/models/target_image_spec.rb:50 # ImageManagement::TargetImage ImageFactory interactions Successful Requests should create new target image with factory meta-data

jguiditta commented 12 years ago

recreating db, fixes specs for me