expect(described_class.inform_client_message(primary_repo_ssh)).toeql("You're pushing to a Geo secondary.\nWe'll help you by proxying this request to the primary: #{primary_repo_ssh}")
end
end
describe'#info_refs'do
context'against primary node'do
let(:current_node){primary_node}
context'instance methods'do
subject{described_class.new(data)}
it'raises an exception'do
expectdo
subject.info_refs
end.toraise_error(described_class::MustBeASecondaryNode,'Node is not a secondary or there is no primary Geo node')