Cast me sync
This commit is contained in:
14
spec/models/casting_submission_spec.rb
Normal file
14
spec/models/casting_submission_spec.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe CastingSubmission, type: :model do
|
||||
subject { build(:casting_submission) }
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user