Skip to content

Commit

Permalink
Merge pull request #690 from tom-lord/its_multiline_regression_test
Browse files Browse the repository at this point in the history
Add missing regression test for 'its' in a multiline spec
  • Loading branch information
Maxim Krizhanovsky committed Sep 27, 2018
2 parents e612baf + 67120f3 commit 4ab2e3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/rubocop/cop/rspec/implicit_subject_spec.rb
Expand Up @@ -17,6 +17,14 @@
RUBY
end

it 'allows `is_expected` inside `its` block, in multi-line examples' do
expect_no_offenses(<<-RUBY)
its(:quality) do
is_expected.to be :high
end
RUBY
end

it 'flags `should` in multi-line examples' do
expect_offense(<<-RUBY)
it 'expect subject to be used' do
Expand Down

0 comments on commit 4ab2e3f

Please sign in to comment.