rating/spec/config/tables_spec.rb

13 lines
297 B
Ruby
Raw Normal View History

2018-02-08 15:29:20 +00:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Rating::Config, 'models' do
it 'changes the rating models' do
subject.models rate: Review, rating: ReviewRating
expect(subject.rate_model).to eq Review
expect(subject.rating_model).to eq ReviewRating
end
end