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

Version Path
ruby_rabbitmq_janus-2.2.0.pre.42 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.1 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.1.pre.139 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.0 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.137 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.136 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.135 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.132 spec/rrj/models/active_record_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.131 spec/rrj/models/active_record_spec.rb