mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
12 lines
311 B
Ruby
12 lines
311 B
Ruby
require 'spec_helper'
|
|
|
|
describe Calculator::FlatRate do
|
|
let(:calculator) { Calculator::FlatRate.new }
|
|
|
|
before { allow(calculator).to receive_messages preferred_amount: 10 }
|
|
|
|
context "extends LocalizedNumber" do
|
|
it_behaves_like "a model using the LocalizedNumber module", [:preferred_amount]
|
|
end
|
|
end
|