@@ -35,78 +36,83 @@ describe Gitlab::Geo::GitPushSSHProxy, :geo do
...
@@ -35,78 +36,83 @@ describe Gitlab::Geo::GitPushSSHProxy, :geo do
}
}
end
end
subject{described_class.new(data)}
describe'.inform_client_message'do
it'returns a message, with the ssh address'do
beforedo
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}")