```ruby
FactoryGirl.define do
  factory :vote do
    up: { [true, false].sample }
  end
end

```

Add up field to vote factory
user
```ruby
FactoryGirl.define do
  factory :vote do
    up { [true, false].sample }
  end
end

```
assistant