From 0aa5ee081e581f92c33b46f113f691f855e0af2b Mon Sep 17 00:00:00 2001 From: Arun Kumar Mohan Date: Mon, 21 Sep 2020 01:54:36 -0500 Subject: [PATCH] Replace `create` with `build` in adjustment metadata model specs --- spec/models/adjustment_metadata_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/adjustment_metadata_spec.rb b/spec/models/adjustment_metadata_spec.rb index 92455615ad..f8226b1876 100644 --- a/spec/models/adjustment_metadata_spec.rb +++ b/spec/models/adjustment_metadata_spec.rb @@ -1,8 +1,8 @@ require 'spec_helper' describe AdjustmentMetadata do - it "is valid when build from factory" do - adjustment = create(:adjustment) + it "is valid when built from factory" do + adjustment = build(:adjustment) expect(adjustment).to be_valid end end