Sha256: 40a963f2c1b9cef1d12dd82fc662bbf10e18acc477803c0f649924cd27cd61c1
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Recipe, type: :model do describe 'Relationships' do it { should have_many(:uses) } it { should have_many(:ingredient_uses) } it { should have_many(:ingredients).through(:uses) } it { should have_many(:supply_uses) } it { should have_many(:supplies).through(:uses) } it { should have_many(:tool_uses) } it { should have_many(:tools).through(:uses) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cookbook-0.1.2 | spec/models/recipe_spec.rb |
cookbook-0.1.1 | spec/models/recipe_spec.rb |
cookbook-0.1.0 | spec/models/recipe_spec.rb |