Skip to content

Commit 9651b05

Browse files
committed
Rubocop fixes
1 parent f9eb3b3 commit 9651b05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/models/better_together/post_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
require '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")
@@ -24,7 +24,7 @@
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

0 commit comments

Comments
 (0)