Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 9fc9024

Browse files
committed
Get the current list of shared context methods from the modules.
This is the current list of what it supports: describe context hooks before append_before prepend_before after prepend_after append_after around run_hook around_each_hooks_for let let! subject subject! its
1 parent a43d59d commit 9fc9024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rspec/core/shared_context.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def #{meth}(*args, &block)
4343
end
4444
end
4545

46-
record :before, :after, :around, :subject, :let, :its, :describe, :context
46+
record :describe, :context, *Hooks.instance_methods(false),
47+
*MemoizedHelpers::ClassMethods.instance_methods(false)
4748
end
4849
end
4950

0 commit comments

Comments
 (0)