Sha256: afe4ba7a254bb5992137e95581bc6ae0f8a1bab01dab4924fb235aad481e6097

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

FactoryGirl.define do
  factory :website do
    sequence :url do |n|
      "http://example.com/#{n}"
    end

    factory :website_enqueued do
      after(:create) do |website,_|
        website.pollable_meta_data.enqueue!
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aeternitas_web_ui-0.2.1 spec/factories/website_factory.rb
aeternitas_web_ui-0.2.0 spec/factories/website_factory.rb