Sha256: 251969b2742d744ed6b39ff9c55a05317ffba5a581582d2bf6046420c3ef443e

Contents?: true

Size: 423 Bytes

Versions: 24

Compression:

Stored size: 423 Bytes

Contents

require 'rails_helper'

describe Admin::PicturesFactory do
  let(:product) { Apiv1::ProductFactory.new.create }
  let(:factory) { described_class.new product, @picture_params }
  let(:picture) { Apiv1::PictureFactory.rack_file }
  before do
    @picture_params = { "0" => picture }
  end
  context '#_picture_params' do
    subject { factory.send '_picture_params' }
    specify { should eq [ { pic: picture } ] }
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cloudrider-0.3.23 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.3.22 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.3.21 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.3.20 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.3.0 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.18 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.15 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.14 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.12 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.11 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.10 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.9 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.8 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.7 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.6 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.5 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.4 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.3 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.2 generica/spec/models/admin/pictures_factory_spec.rb
cloudrider-0.2.1 generica/spec/models/admin/pictures_factory_spec.rb