Sha256: 77d973064f5e2a8759b8d2c69a9a3101c2af4bbc7912e1606ecadf394278a36d

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 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(:ingredient_uses) }

    it { should have_many(:supply_uses) }
    it { should have_many(:supplies).through(:supply_uses) }

    it { should have_many(:tool_uses) }
    it { should have_many(:tools).through(:tool_uses) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cookbook-0.1.6 spec/models/how_to_spec.rb
cookbook-0.1.5 spec/models/how_to_spec.rb
cookbook-0.1.4 spec/models/how_to_spec.rb
cookbook-0.1.3 spec/models/how_to_spec.rb