File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spec/models/better_together Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33require 'rails_helper'
44
5- RSpec . describe BetterTogether ::Post , type : :model do
5+ RSpec . describe BetterTogether ::Post do
66 it_behaves_like 'an authorable model'
77
88 it 'has a valid factory' do
99 expect ( build ( :better_together_post ) ) . to be_valid
1010 end
1111
12- it 'validates presence of title and content' do
12+ it 'validates presence of title and content' do # rubocop:todo RSpec/MultipleExpectations
1313 post = build ( :better_together_post , title : nil , content : nil )
1414 expect ( post ) . not_to be_valid
1515 expect ( post . errors [ :title ] ) . to include ( "can't be blank" )
2424 end
2525
2626 describe 'after_create #add_creator_as_author' do
27- it 'creates an authorship for the creator_id' do
27+ it 'creates an authorship for the creator_id' do # rubocop:todo RSpec/ExampleLength
2828 creator = create ( :better_together_person )
2929 post = build ( :better_together_post )
3030 # Ensure no prebuilt authorships from the factory
You can’t perform that action at this time.
0 commit comments