Files
old-holivud2/spec/models/casting_call_interview_spec.rb

14 lines
363 B
Ruby
Raw Normal View History

2020-07-15 11:57:21 +02:00
require 'rails_helper'
RSpec.describe CastingCallInterview, type: :model do
2020-07-15 16:35:18 +02:00
subject { build(:casting_call_interview) }
2020-07-15 11:57:21 +02:00
describe "associations" do
it { is_expected.to belong_to(:casting_call) }
it { is_expected.to have_secure_token(:token) }
end
describe "validations" do
it { is_expected.to validate_presence_of(:performer_name) }
end
end