Add failing test for #21334

This commit is contained in:
winniehell 2016-08-24 02:18:38 +02:00
parent 02591b0430
commit 75d48ae35b

View file

@ -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