Sha256: 3bf89c9ebcf001ce94669a5ee0d629cdd81a3358b926ce055a1e675d3d2d0196

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
factory_girl-remote_api-0.4.1 spec/factory_girl/remote_api_spec.rb
factory_girl-remote_api-0.4.0 spec/factory_girl/remote_api_spec.rb
factory_girl-remote_api-0.3.0 spec/factory_girl/remote_api_spec.rb