-
Are dependent attributes supported?
See: https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#dependent-attributes
sogko updated
10 years ago
-
I use [Factory_bot](https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md) with rspec.
How can I create an object with different state other the initial?
```ruby
class Job
…
-
Since update from 1.1.0 to 1.3.1 my specs fail because of "Updater can't be blank"
Is there any way to disable tracking in test env?
I tried something like
Mongoid::History.store[Mongoid::Histor…
-
Is it possible to provide a seed to the factory so that running `factory.chance` will give repeatable results?
The Chance documentation says that a seed can be provided to Chance using `new Chance(…
-
Forgive the dumb question but I haven't been able to find an answer online. Using traditional fixtures and Test::Unit I can run unit tests in 1 minute 16 seconds:
```
time rake test:units
235 tests, …
-
@dshaw suggested we should add a CONTRIBUTING.md file that outlines directions in contributing.
https://github.com/nodeconf/Adventure-UNCONF/issues/21
One example provided by github themselves was pu…
-
@Yihang I already upgraded the app to Factory-Bot wich is new and replaces Factory-Girl. (it is only actually a renaming).
When I run the spec
./bin/bundle exec rspec spec/controllers/log_data_con…
-
- guardで監視
- rpsecファイル作成
- factory_girlのテストデータ作成
- capybaraのフォーム入力作成
- spring対応
-
I definitely miss nested factories from factory girl, so I am trying to work out a solution for some type of factory extension api.
Right now I hacked together this basic idea, but wondering if you h…
-
I tried to use factory-bot like this:
```
import factory from 'factory-bot';
factory.define('User', User, {
name: factory.chance('name'),
email: factory.chance('email')
});
```
B…