From 26f5e92260a9b341376c494413f2b100b32c5a6a Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 11 Apr 2023 20:28:24 -0600 Subject: Añadidos specs de modelos para órdenes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/models/order_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/models/order_spec.rb (limited to 'spec/models/order_spec.rb') diff --git a/spec/models/order_spec.rb b/spec/models/order_spec.rb new file mode 100644 index 0000000..08be522 --- /dev/null +++ b/spec/models/order_spec.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe Order, type: :model do + it { should belong_to(:user_account) } + it { should have_one(:payment) } + it { should have_many(:product_orders) } + it { should have_many(:products) } +end -- cgit v1.2.3