Sha256: ad99209b1d02d5196776c4e0d9de608657a3d70fcb1a3935e8700a4394354678

Contents?: true

Size: 897 Bytes

Versions: 9

Compression:

Stored size: 897 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context 'with_database_records' do
  let!(:category) { create :category }

  let!(:author_1) { create :author }
  let!(:author_2) { create :author }

  let!(:article_1) { create :article }
  let!(:article_2) { create :article }
  let!(:article_3) { create :article }

  let!(:rate_1) { create :rating_rate, author: author_1, resource: article_1, value: 100 }
  let!(:rate_2) { create :rating_rate, author: author_1, resource: article_2, value: 11 }
  let!(:rate_3) { create :rating_rate, author: author_1, resource: article_3, value: 10 }
  let!(:rate_4) { create :rating_rate, author: author_2, resource: article_1, value: 1 }

  let!(:rate_5) { create :rating_rate, author: author_1, resource: article_1, scopeable: category, value: 1 }
  let!(:rate_6) { create :rating_rate, author: author_2, resource: article_1, scopeable: category, value: 2 }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rating-0.11.0 spec/support/shared_context/with_database_records.rb
rating-0.10.0 spec/support/shared_context/with_database_records.rb
rating-0.9.0 spec/support/shared_context/with_database_records.rb
rating-0.8.0 spec/support/shared_context/with_database_records.rb
rating-0.7.0 spec/support/shared_context/with_database_records.rb
rating-0.6.0 spec/support/shared_context/with_database_records.rb
rating-0.5.0 spec/support/shared_context/with_database_records.rb
rating-0.4.0 spec/support/shared_context/with_database_records.rb
rating-0.3.0 spec/support/shared_context/with_database_records.rb