2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: physical_tickets
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# token :string
|
|
|
|
|
# created_at :datetime not null
|
|
|
|
|
# updated_at :datetime not null
|
|
|
|
|
# ticket_purchase_id :integer not null
|
|
|
|
|
#
|
|
|
|
|
# Indexes
|
|
|
|
|
#
|
|
|
|
|
# index_physical_tickets_on_token (token) UNIQUE
|
|
|
|
|
#
|
2017-06-08 03:45:08 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
|
|
describe PhysicalTicket do
|
|
|
|
|
|
|
|
|
|
describe 'association' do
|
|
|
|
|
it { is_expected.to belong_to :ticket_purchase }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe 'validations' do
|
|
|
|
|
it 'has a valid factory' do
|
|
|
|
|
expect(build(:physical_ticket)).to be_valid
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|