Commit 1cee6b3c authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add a test for triggering MultiplePrependedBlocks

parent 3acec532
......@@ -213,4 +213,23 @@ describe Gitlab::Patch::Prependable do
end
end
end
context 'having two prepended blocks' do
subject do
Module.new do
extend ActiveSupport::Concern
prepended do
end
prepended do
end
end
end
it "raises an error" do
expect { subject }
.to raise_error(described_class::MultiplePrependedBlocks)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment