Improve spec

This commit is contained in:
Pau Perez
2021-04-23 13:28:02 +02:00
parent 451e05985f
commit 002dabb80c

View File

@@ -1324,13 +1324,9 @@ describe Spree::Order do
end
end
context 'when the is not complete' do
context 'when the order is not complete' do
let(:order) do
build(
:order,
completed_at: nil,
line_items: [build(:line_item)]
)
build(:order, completed_at: nil, line_items: [build(:line_item)])
end
it 'transitions to :cart state' do