mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
7f7bf0533a
* Fix tests [SCI-6486] * Fix rspec tests [SCI-6486] Co-authored-by: Anton <anton@scinote.net>
20 lines
437 B
Ruby
20 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
|