Add failing test for #21334
This commit is contained in:
parent
02591b0430
commit
75d48ae35b
1 changed files with 10 additions and 0 deletions
|
@ -51,6 +51,16 @@ describe ExtractsPath, lib: true do
|
|||
expect(@path).to eq(params[:path])
|
||||
end
|
||||
end
|
||||
|
||||
context 'subclass overrides get_id' do
|
||||
it 'uses ref returned by get_id' do
|
||||
allow_any_instance_of(self.class).to receive(:get_id){ '38008cb17ce1466d8fec2dfa6f6ab8dcfe5cf49e' }
|
||||
|
||||
assign_ref_vars
|
||||
|
||||
expect(@id).to eq(get_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#extract_ref' do
|
||||
|
|
Loading…
Reference in a new issue