FactoryGirl.define do
  sequence(:email) { |n| "user-#{n}@example.com" }

  factory :user do
    email
    password 'abc123'
  end

  factory :entry do
    user
    body 'Entry body'
  end

  factory :import do
    user
  end

  factory :griddler_email, class: OpenStruct do
    to [{
      full: "to_user@example.com",
      email: "to_user@example.com",
      token: "to_user",
      host: "example.com",
      name: nil
    }]
    from [{ email: "from_user@example.com" }]
    subject "Hello Trailmix"
    body "Today was great"
  end
end

FactoryGirl.define do
  sequence(:email) { |n| "user-#{n}@example.com" }

  factory :user do
    email
    password 'abc123'
  end

  factory :entry do
    user
    date Time.zone.now
    body 'Entry body'
  end

  factory :import do
    user
  end

  factory :griddler_email, class: OpenStruct do
    to [{
      full: "to_user@example.com",
      email: "to_user@example.com",
      token: "to_user",
      host: "example.com",
      name: nil
    }]
    from [{ email: "from_user@example.com" }]
    subject "Hello Trailmix"
    body "Today was great"
  end
end

Add date to Entry factory
Add date to Entry factory
