Files
openfoodnetwork/spec/models/calculator/flat_rate_spec.rb
Maikel Linke dcb6f4676d Remove all unnecessary spec_helper require statements
The `.rspec` file is doing this for us.
2026-01-21 12:35:34 +11:00

10 lines
264 B
Ruby

# frozen_string_literal: true
RSpec.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