scinote-web/spec/models/connection_spec.rb

21 lines
437 B
Ruby
Raw Normal View History

2019-05-09 23:10:02 +08:00
# 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') }
2019-05-09 23:10:02 +08:00
end
end