Skip to content

Commit 089d095

Browse files
Follow Sus layout for setup update tests
1 parent 827a787 commit 089d095

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
File.write(workflow, "# Custom workflow\n" + File.read(workflow))
2727
before = Dir.glob("{config,.github}/**/*", File::FNM_DOTMATCH, base: root).select{|name| File.file?(File.join(root, name))}.to_h{|name| [name, File.read(File.join(root, name))]}
2828
registry = Bake::Registry::Aggregate.new
29-
registry.append_path(File.expand_path("..", __dir__))
29+
registry.append_path(::Gem.loaded_specs.fetch("bake-gem-github").full_gem_path)
3030
patch = Bake::Context.new(registry, root).call("gem:github:setup:update")
3131
expect(File.read(patch)).to be(:include?, "-# Custom workflow")
3232
expect(File.read(patch)).to be(:include?, '+ "context": "New check"')

0 commit comments

Comments
 (0)