Sha256: 0e6813951ca773fccb7923b7e1e8046dd4e290c69dd0af0ab5179156490485c8
Contents?: true
Size: 602 Bytes
Versions: 8
Compression:
Stored size: 602 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryBot.define do factory :accept do basket_id{FactoryBot.create(:basket).id} association :item, circulation_status: CirculationStatus.find_by(name: 'In Process'), budget_type: BudgetType.first, bookstore: Bookstore.first librarian_id{FactoryBot.create(:librarian).id} end end # == Schema Information # # Table name: accepts # # id :integer not null, primary key # basket_id :integer # item_id :integer # librarian_id :integer # created_at :datetime # updated_at :datetime #
Version data entries
8 entries across 8 versions & 1 rubygems