Fabricator specs (#23925)
This commit is contained in:
parent
c40d5e5a8f
commit
cd99fa8ceb
37 changed files with 27 additions and 183 deletions
|
@ -121,12 +121,6 @@ describe Report do
|
|||
end
|
||||
|
||||
describe 'validations' do
|
||||
it 'has a valid fabricator' do
|
||||
report = Fabricate(:report)
|
||||
report.valid?
|
||||
expect(report).to be_valid
|
||||
end
|
||||
|
||||
it 'is invalid if comment is longer than 1000 characters' do
|
||||
report = Fabricate.build(:report, comment: Faker::Lorem.characters(number: 1001))
|
||||
report.valid?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue