Closed mtaylor closed 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
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
recreating db, fixes specs for me
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.