public-market/spree_batch_api

View on GitHub
spec/actions/spree/inventory/providers/fake/variant_provider_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method describe(creation)::context#with known isbn (223.0)
Open

    context 'with known isbn' do
      subject(:product) { variant.product }

      it { expect(product).not_to be_nil }
      it { expect(product).to be_persisted }

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

Complex method describe(creation)::context#when variant already exists (69.3)
Open

    context 'when variant already exists' do
      let(:isbn) { '9780979728303' }

      before do
        described_class.call(item_json)

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

Complex method describe(creation)::context(with known isbn)::context(with long title)::it#creates product (27.1)
Open

        it 'creates product' do
          expect(product.name).to eq long_title
          expect(product.meta_title).to eq long_title.truncate(255)

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

Complex method describe(creation)::context(with known isbn)::context#with variant notes (25.8)
Open

      context 'with variant notes' do
        Spree::Variant.class_eval do
          attr_accessor :notes
        end

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

Complex method describe(creation)::context(with known isbn)::context#with taxonomy option (20.2)
Open

      context 'with taxonomy option' do
        let(:options) { { taxonomy: 'Books' } }

        it { expect(product.taxons.first.taxonomy.name).to eq('Books') }

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

There are no issues that match your filters.

Category
Status