Log in Sign up
4 Matching Annotations
  1. Apr 2021
  2. stackoverflow.com stackoverflow.com
    rspec shared examples vs shared context
    3
    1. TylerRick 08 Apr 2021
      in Public
      Also if I replace the shared_context with shared_examples and accordingly include it in test case. Passes

      Shouldn't make a difference if it's an alias. So why did it?

      strange why? differences rspec: shared_context/shared_examples alias
    2. TylerRick 08 Apr 2021
      in Public
      rspec: shared_context/shared_examples differences
    3. TylerRick 08 Apr 2021
      in Public
      If you look at the source code you'll see that they're exactly the same thing.
      read the source code rspec: shared_context/shared_examples alias
    Visit annotations in context

    Tags

    • differences
    • alias
    • read the source code
    • strange
    • why?
    • rspec: shared_context/shared_examples

    Annotators

    • TylerRick

    URL

    stackoverflow.com/questions/21117123/rspec-shared-examples-vs-shared-context
  3. github.com github.com
    rspec/rspec-core
    1
    1. TylerRick 08 Apr 2021
      in Public
      alias shared_context shared_examples
      alias rspec: shared_context/shared_examples
    Visit annotations in context

    Tags

    • alias
    • rspec: shared_context/shared_examples

    Annotators

    • TylerRick

    URL

    github.com/rspec/rspec-core/blob/e7c5d030966a7e8dad3e0a67c61920c4f2437c15/lib/rspec/core/shared_example_group.rb
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy