Sha256: c8163c3c306dc52f2f0999afc4a9df0195137fbb1647da9b546545b01664520f
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Rating::Rating do let!(:object) { build :rating_rating } it { expect(object).to be_valid } it { is_expected.to belong_to :resource } it { is_expected.to belong_to :scopeable } it { is_expected.to validate_presence_of :average } it { is_expected.to validate_presence_of :estimate } it { is_expected.to validate_presence_of :resource } it { is_expected.to validate_presence_of :sum } it { is_expected.to validate_presence_of :total } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rating-0.2.0 | spec/models/rating_spec.rb |