Sha256: 0e9eae3b8443cc2b34c45f60274003dc67a89d6b6348a0e0e82a0b778532a292
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
module FactoryGirl module RemoteApi class Configuration attr_reader :server_url, :server_mount_path def initialize @server_url = 'http://localhost:3000' @server_mount_path = '/factories' end def server_url=(server_url) @server_url = server_url.gsub(/\/$/, '') end def server_mount_path=(server_mount_path) @server_mount_path = "/#{server_mount_path}".squeeze('/').gsub(/\/+\Z/, '') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems