diff --git a/spec/lrama/integration_spec.rb b/spec/lrama/integration_spec.rb index 5c296fad..23385d78 100644 --- a/spec/lrama/integration_spec.rb +++ b/spec/lrama/integration_spec.rb @@ -12,7 +12,7 @@ def exec_command(command) end def compiler - ENV['COMPILER'] || "gcc" + ENV['COMPILER'] || "g++" end def file_extension @@ -270,7 +270,7 @@ def generate_object(grammar_file_path, c_path, obj_path, command_args: []) end describe "sample files" do - let(:c_path) { Dir.tmpdir + "/test.c" } + let(:c_path) { Dir.tmpdir + "/test#{file_extension}" } let(:obj_path) { Dir.tmpdir + "/test" } describe "calc.y" do