diff --git a/lib/trailblazer/core/utils/convert_operation_test.rb b/lib/trailblazer/core/utils/convert_operation_test.rb index 201078e..52420d8 100644 --- a/lib/trailblazer/core/utils/convert_operation_test.rb +++ b/lib/trailblazer/core/utils/convert_operation_test.rb @@ -8,7 +8,7 @@ module Utils # TODO: add {skip} module ConvertOperationTest - def self.call(filepath, target:) + def self.call(filepath, target:, source_gem:) within_marker = false within_ignore = false within_ctx_to_result = false @@ -76,7 +76,7 @@ def self.call(filepath, target:) # op_test.insert(1, "module Autogenerated") # op_test << "end" - op_test.insert(1, "# THIS FILE IS AUTOGENERATED FROM #{filepath}\n") + op_test.insert(1, "# THIS FILE IS AUTOGENERATED FROM #{source_gem}/#{filepath}\n") File.write target, op_test.join("") end diff --git a/test/convert_test.rb b/test/convert_test.rb index 0f6d1dd..2315560 100644 --- a/test/convert_test.rb +++ b/test/convert_test.rb @@ -4,10 +4,10 @@ class ConvertTest < Minitest::Spec it "what" do FileUtils.rm(Dir.glob("test/ruby/operation/*.rb")) - Trailblazer::Core.convert_operation_test("test/ruby/activity_test.rb", target: "test/ruby/operation/activity_test.rb") + Trailblazer::Core.convert_operation_test("test/ruby/activity_test.rb", target: "test/ruby/operation/activity_test.rb", source_gem: "trailblazer-activity") assert_equal File.read("test/ruby/operation/activity_test.rb"), %(require "test_helper" -# THIS FILE IS AUTOGENERATED FROM test/ruby/activity_test.rb +# THIS FILE IS AUTOGENERATED FROM trailblazer-activity/test/ruby/activity_test.rb module X class DocsActivityTest < Minitest::Spec