Sha256: 293de89a59f7d6192a73ee32cc7eff65c267ad451844d533a7f362606ca52dfe
Contents?: true
Size: 514 Bytes
Versions: 21
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' require 'spree/testing_support/shared_examples/gallery' RSpec.describe Spree::Gallery::VariantGallery do let(:gallery) { described_class.new(variant) } let(:variant) { build_stubbed(:variant) } shared_context 'has multiple images' do let(:first_image) { build(:image) } let(:second_image) { build(:image) } before do variant.images << first_image variant.images << second_image end end it_behaves_like 'a gallery' end
Version data entries
21 entries across 21 versions & 1 rubygems