Sha256: d8243b8e4088b06505909c38f74b4c78c88b3a3ab9898bcba639e50fb13785cd
Contents?: true
Size: 627 Bytes
Versions: 32
Compression:
Stored size: 627 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
32 entries across 32 versions & 1 rubygems