spec: xit spec where we need to know how to do

main
Washington Botelho 2018-02-08 17:16:23 -02:00
parent a5474cfd51
commit 1525a7b95f
No known key found for this signature in database
GPG Key ID: 5DE4F42A8F073617
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Rating::Config, '.configure' do
before do
Rating.configure do |config|
config.models rate: 'Review', rating: 'ReviewRating'
end
end
let!(:author) { create :author }
let!(:resource) { create :article }
xit 'changes the rating models' do
author.rate resource, 5
expect(Review.count).to eq 1
expect(ReviewRating.count).to eq 1
end
end