mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-02 19:24:24 -05:00
15 lines
264 B
Ruby
15 lines
264 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe CropCompanion do
|
|
it 'has a crop' do
|
|
cc = described_class.new
|
|
cc.crop_a = create :tomato
|
|
cc.crop_b = create :maize
|
|
cc.save!
|
|
|
|
expect(cc.crop_a.name).to eq 'tomato'
|
|
end
|
|
end
|