Skip to content

Commit

Permalink
Rename test file for error
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Apr 28, 2024
1 parent ade1328 commit ff1ea10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lrama/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1966,15 +1966,15 @@

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`/)
end
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`/)
Expand Down

0 comments on commit ff1ea10

Please sign in to comment.