scinote-web/spec/models/connection_spec.rb
aignatov-bio 7f7bf0533a
Fix tests [SCI-6486] (#3913)
* Fix tests [SCI-6486]

* Fix rspec tests [SCI-6486]

Co-authored-by: Anton <anton@scinote.net>
2022-03-09 14:12:16 +01:00

21 lines
437 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
describe Connection, type: :model do
let(:connection) { build :connection }
it 'is valid' do
expect(connection).to be_valid
end
it 'should be of class Connection' do
expect(subject.class).to eq Connection
end
describe 'Relations' do
#it { should belong_to(:to).class_name('MyModule') }
#it { should belong_to(:from).class_name('MyModule') }
end
end