This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
module FactoryBot | |
module Syntax | |
module Default | |
class DSL | |
def spira_factory(name, options = {}, &block) | |
factory(name, options) do | |
instance_eval do | |
initialize_with do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
module FactoryBot | |
module Syntax | |
module Default | |
class DSL | |
def dry_struct_factory(name, options = {}, &block) | |
factory(name, options) do | |
instance_eval do | |
initialize_with { new(attributes) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'httparty' | |
gem 'http' |