require 'spec_helper' describe FactoryGirl::RemoteApi do describe '.configuration' do it 'accepts a server_url option' do expect { FactoryGirl::RemoteApi.configure { |config| config.server_url = 'http://localhost:3001' } }.to change { FactoryGirl::RemoteApi.configuration.server_url }.from('http://localhost:3000').to('http://localhost:3001') end it 'accepts a server_mount_path option' do expect { FactoryGirl::RemoteApi.configure { |config| config.server_mount_path = '/models' } }.to change { FactoryGirl::RemoteApi.configuration.server_mount_path }.from('/factories').to('/models') end end end