Sha256: a0fccd6abb46765f25dc24c16e5f6c6194091c24b98e179dfaaf9700c994c45d
Contents?: true
Size: 692 Bytes
Versions: 9
Compression:
Stored size: 692 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyRabbitmqJanus::Models::JanusInstance, type: :model, name: :janus_instance do before do Object.send(:remove_const, :Mongoid) if defined?(Mongoid) require 'active_record' unless defined?(ActiveRecord::Core) end let(:model) { RubyRabbitmqJanus::Models::JanusInstance } context 'active record model' do it { expect(model.attribute_names).to include('id') } it { expect(model.attribute_names).to include('instance') } it { expect(model.attribute_names).to include('session') } it { expect(model.attribute_names).to include('enable') } end end
Version data entries
9 entries across 9 versions & 1 rubygems