Sha256: 99bdd38c504da7aeac96b32eac62c96ce0d058a65f7c0414a60685d9fb4ff402
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
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!(:author_3) { create :author } let!(:comment_1) { create :comment } let!(:comment_2) { create :comment } let!(:comment_3) { create :comment } let!(:vote_1) { create :voting_vote, author: author_1, positive: 1, resource: comment_1 } let!(:vote_2) { create :voting_vote, author: author_2, negative: 1, resource: comment_1 } let!(:vote_3) { create :voting_vote, author: author_3, positive: 1, resource: comment_1 } let!(:vote_4) { create :voting_vote, author: author_1, negative: 1, resource: comment_2 } let!(:vote_5) { create :voting_vote, author: author_2, positive: 1, resource: comment_2 } let!(:vote_6) { create :voting_vote, author: author_3, negative: 1, resource: comment_2 } let!(:vote_7) { create :voting_vote, author: author_1, resource: comment_1, positive: 1, scopeable: category } let!(:vote_8) { create :voting_vote, author: author_2, resource: comment_1, negative: 1, scopeable: category } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voting-0.5.0 | spec/support/shared_context/with_database_records.rb |