0
0
Fork 0

Pending example models minimal coverage (#23912)

This commit is contained in:
Matt Jankowski 2023-03-04 11:16:45 -05:00 committed by GitHub
parent 7f4412eeeb
commit 506b16cf59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 128 additions and 17 deletions

View file

@ -2,6 +2,18 @@
require 'rails_helper'
RSpec.describe Rule, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
describe Rule do
describe 'scopes' do
describe 'ordered' do
let(:deleted_rule) { Fabricate(:rule, deleted_at: 10.days.ago) }
let(:first_rule) { Fabricate(:rule, deleted_at: nil, priority: 1) }
let(:last_rule) { Fabricate(:rule, deleted_at: nil, priority: 10) }
it 'finds the correct records' do
results = described_class.ordered
expect(results).to eq([first_rule, last_rule])
end
end
end
end