-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
I write below codes.
database.yml
test: &test
<<: *default
host: 127.0.0.1
database: test_db
test_reader:
<<: *test
host: localhost
TestModel
class TestModel < ActiveRecord::Base
use_switch_point :common
end
require "rails_helper"
RSpec.describe TestModel, :use_transaction do
it "test switch point" do
SwitchPoint.with_readonly do
expect(TestModel.connection.pool.spec.config[:host]).to eq("localhost")
end
end
end
This test case passed in local but failed in Circle CI.
Can anyone help me?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels