Sha256: 7108d5212637dcb2323ea0113bfe48e4552d6f0d57a9f40b1fceaae686e24e33

Contents?: true

Size: 359 Bytes

Versions: 7

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Tool, type: :model do
  describe 'Relationships' do
    it { should have_many(:uses) }

    it { should have_many(:recipe_uses) }
    it { should have_many(:recipes).through(:uses) }

    it { should have_many(:how_to_uses) }
    it { should have_many(:how_tos).through(:uses) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cookbook-0.1.6 spec/models/tool_spec.rb
cookbook-0.1.5 spec/models/tool_spec.rb
cookbook-0.1.4 spec/models/tool_spec.rb
cookbook-0.1.3 spec/models/tool_spec.rb
cookbook-0.1.2 spec/models/tool_spec.rb
cookbook-0.1.1 spec/models/tool_spec.rb
cookbook-0.1.0 spec/models/tool_spec.rb