spec/workers/spree/upload_inventory_worker_spec.rb
Complex method context(when upload csv)::describe#perform worker (48.2) Open
Open
describe 'perform worker' do
before { perform }
it { expect(Spree::Product.count).to eq(5) }
it { expect(Spree::Variant.count).to eq(10) }
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool