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