From ff1ea107a2128aee690a3cec205e5ca270573f14 Mon Sep 17 00:00:00 2001 From: ydah Date: Mon, 29 Apr 2024 03:07:10 +0900 Subject: [PATCH] Rename test file for error --- .../{ => error}/invalid_argument_number.y | 0 .../parameterizing_rules/{ => error}/invalid_rule_name.y | 0 spec/lrama/parser_spec.rb | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename spec/fixtures/parameterizing_rules/{ => error}/invalid_argument_number.y (100%) rename spec/fixtures/parameterizing_rules/{ => error}/invalid_rule_name.y (100%) diff --git a/spec/fixtures/parameterizing_rules/invalid_argument_number.y b/spec/fixtures/parameterizing_rules/error/invalid_argument_number.y similarity index 100% rename from spec/fixtures/parameterizing_rules/invalid_argument_number.y rename to spec/fixtures/parameterizing_rules/error/invalid_argument_number.y diff --git a/spec/fixtures/parameterizing_rules/invalid_rule_name.y b/spec/fixtures/parameterizing_rules/error/invalid_rule_name.y similarity index 100% rename from spec/fixtures/parameterizing_rules/invalid_rule_name.y rename to spec/fixtures/parameterizing_rules/error/invalid_rule_name.y diff --git a/spec/lrama/parser_spec.rb b/spec/lrama/parser_spec.rb index 8e391701..53ae9bbb 100644 --- a/spec/lrama/parser_spec.rb +++ b/spec/lrama/parser_spec.rb @@ -1966,7 +1966,7 @@ context 'when error case' do context "when invalid argument number" do - let(:path) { "parameterizing_rules/invalid_argument_number.y" } + let(:path) { "parameterizing_rules/error/invalid_argument_number.y" } it "raise an error" do expect {grammar}.to raise_error(/Invalid number of arguments\. `list`/) @@ -1974,7 +1974,7 @@ end context "when invalid rule name" do - let(:path) { "parameterizing_rules/invalid_rule_name.y" } + let(:path) { "parameterizing_rules/error/invalid_rule_name.y" } it "raise an error" do expect {grammar}.to raise_error(/Parameterizing rule does not exist\. `invalid`/)