Sha256: 1fe83e30f8df4ff7502ffe5be30f93b629805e5819981f5e497ae34857acb5d7

Contents?: true

Size: 243 Bytes

Versions: 6

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :rating_rating, class: Rating::Rating do
    average  100
    estimate 100
    sum      100
    total    1

    association :resource, factory: :article, strategy: :build
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rating-0.8.0 spec/factories/rating/rating.rb
rating-0.7.0 spec/factories/rating/rating.rb
rating-0.6.0 spec/factories/rating/rating.rb
rating-0.5.0 spec/factories/rating/rating.rb
rating-0.4.0 spec/factories/rating/rating.rb
rating-0.3.0 spec/factories/rating/rating.rb