Sha256: 5a69b80a490fd4a09fdca544745f9b8f561f168185bce027dc2bd901e0abd4e1
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
require 'spec_helper' require 'spree/testing_support/factories/stock_package_factory' RSpec.describe 'stock package factory' do let(:factory_class) { Spree::Stock::Package } describe 'plain stock package' do let(:factory) { :stock_package } it "builds successfully" do expect(build factory).to be_a(factory_class) end # No test for .create, as it's a PORO end describe 'fulfilled stock package' do let(:factory) { :stock_package_fulfilled } it "builds successfully" do expect(build factory).to be_a(factory_class) end # No test for .create, as it's a PORO end end
Version data entries
7 entries across 7 versions & 1 rubygems