rating/spec/config/models_spec.rb

13 lines
298 B
Ruby
Raw Normal View History

2018-02-08 15:29:20 +00:00
# frozen_string_literal: true
require 'rails_helper'
2018-02-08 19:15:48 +00:00
RSpec.describe Rating::Config, '.models' do
2018-02-08 15:29:20 +00:00
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