Sha256: b96c68e26b951923df79e527d2126eb349b25b24e03012c88e5f58983d311026
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe HowTo, type: :model do describe 'Relationships' do it { should have_many(:uses) } it { should_not have_many(:ingredient_uses) } it { should_not 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/how_to_spec.rb |
cookbook-0.1.1 | spec/models/how_to_spec.rb |
cookbook-0.1.0 | spec/models/how_to_spec.rb |