1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
Commit graph

6 commits

Author SHA1 Message Date
Joshua Clayton
8f4e052a85 Proxies are always instantiated with callbacks 2011-10-20 14:19:09 -04:00
Joshua Clayton
dc32fd69e8 Change syntax for ignoring attributes to use block syntax instead of
calling ignore on individual declarations.

Old syntax:

    factory :user do
      rockstar(true).ignore
      four { 2 + 2 }.ignore

      name { "John Doe#{" - Rockstar" if rockstar}" }
    end

New syntax:

    factory :user do
      ignore do
        rockstar true
        four     { 2 + 2 }
      end

      name { "John Doe#{" - Rockstar" if rockstar}" }
    end
2011-10-09 16:46:57 -04:00
Joe Ferris
0f87ca3aa9 Use objects, not structs 2011-09-16 17:48:06 -04:00
Jim Kingdon
90374818a7 Now able to specify :method => :build in a factory's association.
See issue #64.
2011-08-25 15:11:01 -04:00
Joshua Clayton
c87429b829 Add transient variables
Closes #142
Closes #103
2011-08-20 18:36:37 -04:00
Joshua Clayton
d296a22586 Clean up proxy specs with shared examples 2011-08-19 17:21:55 -04:00