mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
parent
3afd542b1a
commit
ae64c7cbed
3 changed files with 16 additions and 2 deletions
13
spec/models/account_activity_spec.rb
Normal file
13
spec/models/account_activity_spec.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe AccountActivity do
|
||||
describe 'account validation', db: false do
|
||||
subject(:account_activity) { described_class.new }
|
||||
|
||||
it 'rejects absent' do
|
||||
account_activity.account = nil
|
||||
account_activity.validate
|
||||
expect(account_activity.errors).to have_key(:account)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue