# frozen_string_literal: true

# Read about factories at https://github.com/thoughtbot/factory_bot

FactoryBot.define do
  sequence(:feed_title_sequence) {|n| "some_feed_title_#{n}"}
  sequence(:feed_url_sequence) {|n| "http://some.feed.url.#{n}.com"}
  sequence(:feed_fetch_url_sequence) {|n| "http://some.feed.fetch.url.#{n}.com"}

  factory :feed do
    title {generate :feed_title_sequence}
    url {generate :feed_url_sequence}
    fetch_url {generate :feed_fetch_url_sequence}
    last_fetched {nil}
    failing_since {nil}
    available {true}
    fetch_interval_secs {3600}
  end
end
