Sha256: 9b037d3e0622d93eb10d9757daa1c8c0712a3e5dd840e78a0c4b97ac8267164a

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

FactoryGirl.define do
  factory :review, :class => Spree::Review do |f|
    name   { generate(:random_email) }
    title  { generate(:random_string) }
    review { generate(:random_description) }
    rating { rand(1..5) }
    approved false
    user
    product

    trait :approved do
      approved true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jiffyshirts_spree_reviews-2.3.1.2 spec/factories/review_factory.rb
jiffyshirts_spree_reviews-2.3.1.1 spec/factories/review_factory.rb