1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/lib/factory_girl
Prem Sichanugrist 91d8614600 Use instance_exec instead of instance_eval
In Ruby 1.9.2, instance_eval doesn't yield self anymore, resulting in "wrong number of arguments" error. This should make it compatible with 1.8.7 and 1.9.2

References:
http://www.ruby-forum.com/topic/213313
http://www.ruby-forum.com/topic/189422
2011-05-25 17:55:09 -04:00
..
attribute Use instance_exec instead of instance_eval 2011-05-25 17:55:09 -04:00
proxy Use a registry class for keeping factories and sequences. Treat 2011-01-27 20:15:33 -05:00
syntax Use a registry class for keeping factories and sequences. Treat 2011-01-27 20:15:33 -05:00
aliases.rb Factory.aliases should not alias attributes like "_id" 2010-07-26 10:13:30 -04:00
attribute.rb Moved definition loading syntax out of the factory class; moved everything into a FactoryGirl module 2010-07-06 20:22:02 -04:00
definition_proxy.rb Switch to yard 2011-02-07 17:48:00 -05:00
deprecated.rb Check for undefined constants/methods on Factory on FactoryGirl to preserve backwards compatibility 2010-07-06 20:22:11 -04:00
factory.rb Use a registry class for keeping factories and sequences. Treat 2011-01-27 20:15:33 -05:00
find_definitions.rb Perform a sort on files loaded from the factories/ directory. 2010-08-25 11:14:44 -04:00
proxy.rb Updated docs and examples for new syntax 2011-01-26 20:55:06 -05:00
rails2.rb Moved definition loading syntax out of the factory class; moved everything into a FactoryGirl module 2010-07-06 20:22:02 -04:00
registry.rb Use a registry class for keeping factories and sequences. Treat 2011-01-27 20:15:33 -05:00
sequence.rb Use a registry class for keeping factories and sequences. Treat 2011-01-27 20:15:33 -05:00
step_definitions.rb Use a registry class for keeping factories and sequences. Treat 2011-01-27 20:15:33 -05:00
syntax.rb Updated documentation for new syntax 2010-10-01 18:50:01 -04:00
version.rb Bump to 2.0.0.beta2 2011-02-17 13:59:32 -05:00