rspec_rails_4 icon indicating copy to clipboard operation
rspec_rails_4 copied to clipboard

Ch.7 p73 - shared_examples("xxx") and ( )

Open JunichiIto opened this issue 11 years ago • 1 comments

This might be a matter of personal preference but shared_examples("public access to contacts") do looks a little odd for me. I feel no ( ) style is more popular:

E.g.

  • https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples
  • http://rubydoc.info/gems/rspec-core/file/README.md#shared_examples_and_contexts

JunichiIto avatar Feb 11 '14 12:02 JunichiIto

I'll address this in the next code update. I don't have a timeline for this at the moment--depends on when Rails 4.1 or RSpec 3 is released.

ruralocity avatar Feb 12 '14 01:02 ruralocity