I have a bunch of shared_examples that I've put in a shared context. The 
setup works but running them causes an rspec WARNING: Shared example group 
'...' has been previously defined at:... Which makes me assume there might 
be a better way. Was curious if there is?

Simple example:

shared_context 'some_context' do
  let(:some_var) { ... }
  matcher :some_matches { ... {
  
  shared_examples_for 'group_a' do
    ...
  end  

  shared_examples_for 'group_b' do
    ...
  end  
end


-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rspec/-/RSW0nfr1apwJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to