You can use the exisiting factory for this instead of creating it inline.

```
domain = FactoryGirl.attributes_for(:domain)
domain[:type] = 'MASTER' # would be good to create a variant of this factory to accommodate different types
```