Sha256: cc27ab166dc507c4f234d10ddfdc3feb6138fd0e42b7b338ccf6b9dbdffde447
Contents?: true
Size: 441 Bytes
Versions: 4
Compression:
Stored size: 441 Bytes
Contents
require 'siringa' require File.expand_path('../../factories', __FILE__) Siringa.add_definition :initial do FactoryGirl.create :user, name: 'Jesse Pinkman' end Siringa.add_definition :definition_with_arguments do |args| FactoryGirl.create :user, name: args[:name] end Siringa.add_definition :definition_with_return do |args| user = FactoryGirl.create :user, name: args[:name] { id: user.id, name: user.name, surname: 'Stark' } end
Version data entries
4 entries across 4 versions & 1 rubygems