Browse Source

Revert sales shared examples change

pull/2445/head
Kat 2 years ago
parent
commit
8fa1243c23
  1. 14
      spec/models/sales_log_spec.rb

14
spec/models/sales_log_spec.rb

@ -6,19 +6,7 @@ RSpec.describe SalesLog, type: :model do
let(:owning_organisation) { create(:organisation) }
let(:assigned_to_user) { create(:user) }
context "with shared examples" do
before do
Timecop.freeze(Time.zone.local(2024, 3, 1))
Singleton.__init__(FormHandler)
end
after do
Timecop.return
Singleton.__init__(FormHandler)
end
include_examples "shared log examples", :sales_log
end
include_examples "shared log examples", :sales_log
it "inherits from log" do
expect(described_class).to be < Log

Loading…
Cancel
Save