Sha256: a17bd538ada5821a9b2204d841e0b7b3b8d3064205d8084b49ae90c5819eb8d3

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe EbisuConnection do
  context "access to slave" do
    it "select from User is to access to slave" do
      expect(User.first.name).to be_include("slave")
    end
  end

  context "access to master" do
    it "specify read_master" do
      expect(User.read_master.first.name).to be_include("master")
    end

    it "specify readonly(false)" do
      expect(User.readonly(false).first.name).to be_include("master")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ebisu_connection-0.3.0 spec/unit/ebisu_connection_spec.rb