Sha256: 36414fa7969b89118867bf748a562767a9a38dcb1cdbb942a3da603c4c680774

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

require 'spec_helper'
describe ConnectionManager::Relation  do
  context 'ActiveRecord::Relation' do
    describe '#using' do
      it "should be defined" do
        expect(Fruit.where(:id => 1)).to respond_to(:using)
      end
    end
    describe '#slaves' do
      it "should be defined" do
        expect(Fruit.where(:id => 1)).to respond_to(:slaves)
      end
    end

    describe '#masters' do
      it "should be defined" do
        expect(Fruit.where(:id => 1)).to respond_to(:masters)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
connection_manager-2.0.0 spec/lib/relation_spec.rb
connection_manager-1.1.5 spec/lib/relation_spec.rb
connection_manager-1.1.4 spec/lib/relation_spec.rb
connection_manager-1.1.3 spec/lib/relation_spec.rb
connection_manager-1.1.2 spec/lib/relation_spec.rb
connection_manager-1.1.1 spec/lib/relation_spec.rb
connection_manager-1.1.0 spec/lib/relation_spec.rb