From 43f3bfe306031ac9dd79708474c6c3f9a252dc26 Mon Sep 17 00:00:00 2001 From: Taichi Ishitani Date: Sun, 21 Jul 2024 00:36:01 +0900 Subject: [PATCH] avoid unknown field error (#15, rggen/rggen#220) --- spec/rggen/c_header/register_block/c_header_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/rggen/c_header/register_block/c_header_spec.rb b/spec/rggen/c_header/register_block/c_header_spec.rb index 8d5e4b7..eaf00bb 100644 --- a/spec/rggen/c_header/register_block/c_header_spec.rb +++ b/spec/rggen/c_header/register_block/c_header_spec.rb @@ -5,9 +5,16 @@ include_context 'c header common' before(:all) do + RgGen.define_simple_feature(:register_block, :protocol) do + configuration { build {} } + end RgGen.enable_all end + after(:all) do + RgGen.delete(:register_block, :protocol) + end + context '幅広レジスタが許可されている場合' do it 'ConfigurationErrorを起こす' do configuration =