Skip to content

Commit 5c8fef3

Browse files
committed
Complete 100 line coverage for Metadata mixin
This adds a final spec to cover an intentionally unimplemented method.
1 parent a95f2f0 commit 5c8fef3

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)