# RSpec

## VCR

## Guard

## Factory Girl

### Tips and Tricks

#### How to Add a Serialized Hash Attribute to a Factory\_Girl Definition

To include a hash as an attribute of a factory, use a double brackets or pass it as explicit method argument (inside parenthesis):&#x20;

```ruby
factory :account do
  config { { version: 2 } }
  # or
  config({ version: 2 })
end
```
