module FactoryGirl::RemoteApi

Constants

VERSION

Public Class Methods

attributes_for(factory, attributes = {}) click to toggle source
# File lib/factory_girl/remote_api.rb, line 30
def self.attributes_for(factory, attributes = {})
  FactoryGirl::RemoteApi::Request.new.get_response_for(:attributes_for, factory, attributes)
end
build(factory, attributes = {}) click to toggle source
# File lib/factory_girl/remote_api.rb, line 26
def self.build(factory, attributes = {})
  FactoryGirl::RemoteApi::RemoteFactory.model_from(:build, factory, attributes)
end
configuration() click to toggle source
# File lib/factory_girl/remote_api.rb, line 14
def self.configuration
  @configuration ||= FactoryGirl::RemoteApi::Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/factory_girl/remote_api.rb, line 10
def self.configure
  yield configuration if block_given?
end
create(factory, attributes = {}) click to toggle source
# File lib/factory_girl/remote_api.rb, line 22
def self.create(factory, attributes = {})
  FactoryGirl::RemoteApi::RemoteFactory.model_from(:create, factory, attributes)
end
created_attributes_for(factory, attributes = {}) click to toggle source
# File lib/factory_girl/remote_api.rb, line 34
def self.created_attributes_for(factory, attributes = {})
  FactoryGirl::RemoteApi::Request.new.get_response_for(:create, factory, attributes)
end
reset_configuration() click to toggle source
# File lib/factory_girl/remote_api.rb, line 18
def self.reset_configuration
  @configuration = nil
end