mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-21 00:47:26 +00:00
Style Heredoc indentation
This commit is contained in:
@@ -10,7 +10,7 @@ RSpec.describe OutstandingBalanceQuery do
|
||||
let(:normalized_sql_statement) { normalize(query.statement) }
|
||||
|
||||
it 'returns the CASE statement necessary to compute the order balance' do
|
||||
expect(normalized_sql_statement).to eq(normalize(<<-SQL.squish))
|
||||
expect(normalized_sql_statement).to eq(normalize(<<~SQL.squish))
|
||||
CASE WHEN "spree_orders"."state" IN ('canceled', 'returned') THEN "spree_orders"."payment_total"
|
||||
WHEN "spree_orders"."state" IS NOT NULL THEN "spree_orders"."payment_total" - "spree_orders"."total"
|
||||
ELSE 0 END
|
||||
|
||||
Reference in New Issue
Block a user