Skip to content

Commit a72a32d

Browse files
authored
Merge pull request #1970 from corsonknowles/complete_line_coverage_for_rubocop_rspec
Complete line coverage for Metadata mixin
2 parents 961e544 + 5c8fef3 commit a72a32d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# frozen_string_literal: true
2+
3+
RSpec.describe RuboCop::Cop::RSpec::Metadata do
4+
describe '#on_metadata' do
5+
subject(:on_metadata) do
6+
stub_class.new.on_metadata(:symbol, {})
7+
end
8+
9+
let(:stub_class) do
10+
Class.new do
11+
include RuboCop::Cop::RSpec::Metadata
12+
end
13+
end
14+
15+
it { expect { on_metadata }.to raise_error(NotImplementedError) }
16+
end
17+
end

0 commit comments

Comments
 (0)