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 }
- 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
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)
- 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
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)
- 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
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
- 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
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') }
- 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