mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
19 lines
351 B
Ruby
19 lines
351 B
Ruby
require 'spec_helper'
|
|
|
|
module Spree
|
|
describe Price do
|
|
let(:variant) { create(:variant) }
|
|
let(:price) { variant.default_price }
|
|
|
|
context "when variant is soft-deleted" do
|
|
before do
|
|
variant.destroy
|
|
end
|
|
|
|
it "can access the variant" do
|
|
expect(price.reload.variant).to eq variant
|
|
end
|
|
end
|
|
end
|
|
end
|