Sha256: 8e413079ea684d4db5b919a05ed3bfc3c5af093f79324f9d6c6970ad4be15c4b
Contents?: true
Size: 507 Bytes
Versions: 35
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' require 'spree/testing_support/shared_examples/gallery' RSpec.describe Spree::Gallery::ProductGallery do let(:gallery) { described_class.new(product) } let(:product) { create(:product) } shared_context 'has multiple images' do let(:first_image) { build(:image) } let(:second_image) { build(:image) } before do product.images << first_image product.images << second_image end end it_behaves_like 'a gallery' end
Version data entries
35 entries across 35 versions & 2 rubygems