mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
15 lines
348 B
Ruby
15 lines
348 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Invoice::DataPresenter do
|
|
context "#display_date" do
|
|
let(:invoice) { double(:invoice, date: '2023-08-01') }
|
|
|
|
let(:presenter) { Invoice::DataPresenter.new(invoice) }
|
|
it "prints in a format" do
|
|
expect(presenter.display_date).to eq "August 01, 2023"
|
|
end
|
|
end
|
|
end
|