views:

54

answers:

0

I'm using Rails 2.3.5, paperclip 2.3.3 with rspec and factory_girl.

Can't figure out why the attr_accessors are undefined when I try to test upload or simply calling. e.g.

account.profile_photo.file?

undefined method `profile_photo_file_name' for #Account:0x105970af8

Where I have it running properly in Development.

account.rb

  has_attached_file :profile_photo,{
    :default_style=>:normal,
    :styles => { :normal => ["80x80#", :png] }
  })