rspec_rails_4
rspec_rails_4 copied to clipboard
Ch.7 p73 - shared_examples("xxx") and ( )
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
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.