Skip to content

Commit

Permalink
Allow empty blocks in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Nov 9, 2020
1 parent 0fc2ab6 commit 767fb69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -21,6 +21,9 @@ AllCops:
Layout/LineLength:
Max: 120

Lint/EmptyBlock:
Enabled: false

Lint/SuppressedException:
Enabled: false

Expand Down
4 changes: 2 additions & 2 deletions spec/views/home/index.html.erb_spec.rb
Expand Up @@ -19,8 +19,8 @@

describe 'non-authorized user' do
before do
stub_current_user_for_view {}
stub_user_id_for_view {}
stub_current_user_for_view { FactoryBot.create(:blank_user) }
stub_user_id_for_view { FactoryBot.create(:blank_user) }
render
end

Expand Down

0 comments on commit 767fb69

Please sign in to comment.