Spreewald 0.8.0 brings a file attachment step

Posted . Visible to the public.
# Attach a file
#
# Example:
#
#   Company.new.logo = File.new…
#
#   Given the file "…" was attached as logo to the company above
#
#
# Example:
#
#   class Gallery
#     has_many :images, :as => :owner
#   end
#
#   class Image
#     belongs_to :owner, polymorphic: true
#   end
#
#   # so container = Image.new; container.file = File.new… , container.owner = object
#
#   Given the file "…" was attached as Image/file to the company above
#
#
# Example:
#
#   Set updated_at with
#
#     Given … above at "2011-11-11 11:11"
#
Martin Straub
Last edit
Keywords
cucumber, carrierwave
License
Source code in this card is licensed under the MIT License.
Posted by Martin Straub to makandra dev (2013-12-04 15:27)