mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
We're now handling these values on the frontend, so can keep this simple. fixes up: Add numericality validation for * Add translation for Active Record error message
12 lines
281 B
Ruby
12 lines
281 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Calculator::FlatRate do
|
|
let(:calculator) { Calculator::FlatRate.new }
|
|
|
|
before { allow(calculator).to receive_messages preferred_amount: 10 }
|
|
|
|
it { is_expected.to validate_numericality_of(:preferred_amount) }
|
|
end
|