The relish docs are kept under source in the repository for each gem under the features directory. The ones you mentioned are here:
- https://github.com/rspec/rspec-mocks/blob/master/features/old_syntax/any_instance.feature - https://github.com/rspec/rspec-mocks/blob/master/features/working_with_legacy_code/any_instance.feature Please submit suggested doc changes as a PR to the repo. Thanks, Myron On Fri, Sep 25, 2015 at 2:18 AM, James Doyley <[email protected]> wrote: > Hi, > > I was looking at the docs, specifically > https://relishapp.com/rspec/rspec-mocks/docs/old-syntax/any-instance > > https://relishapp.com/rspec/rspec-mocks/docs/working-with-legacy-code/any-instance > > I agree that it's a design smell, but I want to suggest an example. I > couldn't find out how to contribute to the documentation hence posting here. > > I was just thinking a better example as an alternative would be > > RSpec.describe User, type: :model do > subject(:user){ User.new } > before(:each) do > allow(user).to receive(:foo).and_return("bar") > 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/msgid/rspec/a725b287-f0ac-4315-83ca-c4ab9c03ba05%40googlegroups.com > <https://groups.google.com/d/msgid/rspec/a725b287-f0ac-4315-83ca-c4ab9c03ba05%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/msgid/rspec/CADUxQmspk2-5i197tVPaR27qSq-0daK7EWd-im32qy3UT0CHog%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
