mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
12 lines
287 B
Ruby
12 lines
287 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
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
|