We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e68175d commit 6489ae6Copy full SHA for 6489ae6
lib/rspec/rails/fixture_support.rb
@@ -46,7 +46,7 @@ def fixtures(*args)
46
def proxy_method_warning_if_called_in_before_context_scope(method_name)
47
orig_implementation = instance_method(method_name)
48
define_method(method_name) do |*args, &blk|
49
- if inspect.include?("before(:context)")
+ if RSpec.current_scope == :before_context_hook
50
RSpec.warn_with("Calling fixture method in before :context ")
51
else
52
orig_implementation.bind(self).call(*args, &blk)
0 commit comments