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/spec
Daniel Colson 5b31b56d65 Remove warning about setter methods
This warning made sense when we had static attributes, since
somebody might try to write something like:

```rb
factory :composer do
  self.name = "Daniel"
end
```

That would create a static declaration when the factory was defined,
then raise the error about avoiding writers when the factory was run.

Now this code will raise a NoMethodError right away when the factory is
being defined.
2018-09-28 16:59:48 -04:00
..
acceptance Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
factory_bot Remove warning about setter methods 2018-09-28 16:59:48 -04:00
support Remove static attributes 2018-09-14 19:27:13 +00:00
factory_bot_spec.rb Remove unnecessary spec_helper requires 2018-05-21 18:03:28 +01:00
spec_helper.rb Run specs in random order 2018-05-21 18:03:50 +01:00